RE: OPEN_BY_FILE_ID (was Re: Best Method to get FullP- athN ame)

Curt,

Essentially, that’s the case. The 8 byte ID is created by the FSD. The 16
byte ID is optional, and is assigned by some agency outside the FSD.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com http:

-----Original Message-----
From: xxxxx@omnishift.com [mailto:xxxxx@omnishift.com]
Sent: Wednesday, May 02, 2001 8:59 PM
To: File Systems Developers
Subject: [ntfsd] RE: OPEN_BY_FILE_ID (was Re: Best Method to get FullP athN
ame)

Hi Tony:

Thanks for your information, valuable as always.

I’m assuming the 8-byte case is what’s returned from
FileInternalInformation, and the 16-byte case is what’s returned from
FSCTL_CREATE_OR_GET_OBJECT_ID – right?

Thanks,
Curt

> -----Original Message-----
> From: Tony Mason [mailto:xxxxx@osr.com mailto:xxxxx]
> Sent: Monday, April 30, 2001 11:55 AM
> To: File Systems Developers
> Subject: [ntfsd] RE: OPEN_BY_FILE_ID (was Re: Best Method to get
> FullPathN ame)
>
>
> Curt,
>
> An “open by ID” is always a relative open. The file name
> must either be 8
> bytes (a 64 bit file ID) or 16 bytes (a 128 bit object ID).
> The related
> file object only indicates the VOLUME on which the file is
> located and may
> have nothing to do with the file being opened.
>
> Open by ID is a rather interesting side-case. It does
> happen, but not very
> often since there’s no simple Win32 mechanism for doing this.
> Best thing to
> do is write a test program (since you have to use the native
> API and you
> shouldn’t use that in anything EXCEPT a test program.) Open
> a file by name,
> retrieve its file ID. Then, open a directory (oh, like the
> root directory.)
> Using the directory handle, open the file by ID, specifying
> the ID as the
> file name and indicating that this is the FILE_OPEN_BY_FILE_ID case.
>
> Regards,
>
> Tony
>
> Tony Mason
> Consulting Partner
> OSR Open Systems Resources, Inc.
> http://www.osr.com http: < http://www.osr.com
http: >


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:></mailto:xxxxx></http:>