How to get the file ID

Hi All,

Does anyone know how to get the file ID from the full path file name or file
handle? I am knowing the file ID is one to one match up with the open file, am
I right? I can not find any information on how to get the file ID. Please give
me some help or hint, it is a very appreciated.

Thanks in advance.

JianJing Qin

Do you want the file ID or do you want the file’s object ID?

-----Original Message-----
From: xxxxx@tivoli.com [mailto:xxxxx@tivoli.com]
Sent: Wednesday, April 26, 2000 10:51 AM
To: File Systems Developers
Subject: [ntfsd] How to get the file ID

Hi All,

Does anyone know how to get the file ID from the full path file name or file
handle? I am knowing the file ID is one to one match up with the open file,
am
I right? I can not find any information on how to get the file ID. Please
give
me some help or hint, it is a very appreciated.

Thanks in advance.

JianJing Qin


You are currently subscribed to ntfsd as: xxxxx@congruent.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

  1. To obtain file ID from handle you must call Nt(Zw)QueryInformationFile
    with FileInternalInformation information class (and as file information use
    FILE_INTERNAL_INFORMATION structure).

  2. To obtain file ID from file name you must first open the file using
    Nt(Zw)CreateFile, Nt(Zw)OpenFile or Win32 CreateFileW(A). Then you should
    do the same thing as in 1.

Paul

Hi Arthur Kreitman,

Can you tell me both? But the file ID first. I know the file object is not
one to one match up with the file which mean one file can have many file object
when it does multiple open.

Thanks,

JianJing Qin

Arthur Kreitman on 04/26/2000 02:36:09 PM

Please respond to “File Systems Developers”

To: “File Systems Developers”
cc: (bcc: Jian Qin/Tivoli Systems)
Subject: [ntfsd] RE: How to get the file ID

Do you want the file ID or do you want the file’s object ID?

-----Original Message-----
From: xxxxx@tivoli.com [mailto:xxxxx@tivoli.com]
Sent: Wednesday, April 26, 2000 10:51 AM
To: File Systems Developers
Subject: [ntfsd] How to get the file ID

Hi All,

Does anyone know how to get the file ID from the full path file name or file
handle? I am knowing the file ID is one to one match up with the open file,
am
I right? I can not find any information on how to get the file ID. Please
give
me some help or hint, it is a very appreciated.

Thanks in advance.

JianJing Qin


You are currently subscribed to ntfsd as: xxxxx@congruent.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntfsd as: xxxxx@tivoli.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

> Does anyone know how to get the file ID from the full path file name or
file

handle? I am knowing the file ID is one to one match up with the open
file,

Do you mean on-disk file ID similar to s_ino (inode number) in UNIX?
Try FileIndex field in FILE_xxx_INFORMATION structures.

Max