SadhanaP

updated

5 years ago

S

SadhanaP

10 Posts

0

1091

August 27th, 2021 04:00

Inode generation number

Hi,

Whats the equivalent field as inode generation field in OneFS 8.1.

Is inode number never reused after file/dir deletion? 

 

Thanks

 

 

 

  • Peter_Sero

    6 Operator

    •

    1169 Posts

    887

    1

    Posted August 27th, 2021 09:00

    Inode numbers are never re-used in OneFS, i.e. they basically keep increasing for new files. (I say basically because there are pre-pooled ranges of inode number across the cluster. So a new file can get a /lower/ inode number than an older file if the new file happens be created from a different inode 'pool'. But over time, numbers increase.) 

    What are you trying to do; how to you get involved with inode generation numbers?

    -- Peter

  • SadhanaP

    10 Posts

    872

    0

    Posted August 29th, 2021 22:00

    Thanks for the clarification.

    I wanted to identify file uniquely even after deletion. In case inode get reused(As other file systems) I may end up with two entries for same file.