Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTFSD
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


questions on FILE_INTERNAL_INFORMATION.IndexNumber

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Hello,
Can anyone tell me if the IndexNumber identifier returned for a
FileInternalInformation file information query is:

a) guaranteed to be unique on a given volume for both files and directories
b) can a file or directories IndexNumber change over time? If so, what
circumstances will change it.

Thanks,
Joel

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    questions on FILE_INTERNAL_INFORMATION.IndexNumber1) Volume unique
    2) It will not change
    -----Original Message-----
    From: [email protected]
    [mailto:[email protected]]On Behalf Of Smith, Joel
    Sent: Friday, April 21, 2000 7:44 AM
    To: File Systems Developers
    Subject: [ntfsd] questions on FILE_INTERNAL_INFORMATION.IndexNumber


    Hello,
    Can anyone tell me if the IndexNumber identifier returned for a
    FileInternalInformation file information query is:

    a) guaranteed to be unique on a given volume for both files and
    directories
    b) can a file or directories IndexNumber change over time? If so, what
    circumstances will change it.

    Thanks,
    Joel
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    questions on FILE_INTERNAL_INFORMATION.IndexNumber>Subject: [ntfsd] RE:
    questions on >FILE_INTERNAL_INFORMATION.IndexNumber
    >1) Volume unique
    >2) It will not change

    Sorry, but what on FAT defragmentation? FAT (unlike NTFS) do not have a
    concept of the "file number" like inode number in UNIX. So, FASTFAT uses
    the following:

    // Extract the data and fill in the non zero fields of the
    output
    // buffer. We use the logical offset of the dirent describing
    // this file on the volume.
    //

    Buffer->IndexNumber.LowPart =
    ( NodeType(Fcb->ParentDcb) != FAT_NTC_ROOT_DCB ?
    FatGetLboFromIndex( Fcb->Vcb,
    Fcb->ParentDcb->FirstClusterOfFile ) :
    Fcb->Vcb->AllocationSupport.RootDirectoryLbo ) +
    Fcb->DirentOffsetWithinDirectory;

    The offset they use is clearly a subject to change on defragmentation.

    Max
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE