RE: Pre-query information for IRP_MJ_CREATE with FILE_OPE- N_BY_FILEID

Svante,

Open by File ID is a traditional “screw case” for file system filter drivers
that insist on knowing the name.

If opening the file and then cancelling the open when it should not be
allowed to continue is unacceptable to you, you will need to build and
maintain a correspondence table of some sort, so that you can translate from
the file ID (which is either a 64 bit number (file ID) or a 128 bit number
(object ID.))

Of course, there’s nothing that requires a file system be able to give you a
name to match up with the file that is opened by file ID, so if you cannot
get the name back from the file system, you need to be able to handle that
situation.

Regards,

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

-----Original Message-----
From: Svante Moren [mailto:xxxxx@abaris.se]
Sent: Wednesday, February 21, 2001 3:42 PM
To: File Systems Developers
Subject: [ntfsd] Pre-query information for IRP_MJ_CREATE with
FILE_OPEN_BY_FILEID

Hi all!

In my filter driver I need to pre-query information for the file beeing
opened/created. I run into problems when I receive a IRP_MJ_CREATE with the
FILE_OPEN_BY_FILEID flag set. I would like to get the file name for that
file so that I then can open it and pre-query all required information as I
normally do. Letting the IRP complete is NOT an option, since the filter
driver needs to deny certain IRP_MJ_CREATEs.

TNX 1.0E6 in advance!

/Svante


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