creating a file object

Hello,
I have a weird scenario were I would like to say that a particular file
exists, when I know that it doesn’t exist on the actual file system. I
already have a working file system filter driver. I would like to in the
Create dispatch routine, check to see if the file being opened is that
specific file, and if it is return success to the caller, and then process
all io to that file object myself without it going to the file system. The
file does NOT exist on the file system, so sending the request down is
useless, nor can I create the file (read only fs). I know I need to create
a file object to do this, but am not sure how… can this be done?

thanks,
rob


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

You will get a file object on the create call. Use it. That is why the
IO manager sends you a file object on the create call.

You could use IoCreateStreamFile and IoCreateStreamFileLight to create a
file object, but I suspect that you can use the one the system gave you.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rob Green
Sent: Wednesday, November 07, 2001 7:28 PM
To: File Systems Developers
Subject: [ntfsd] creating a file object

Hello,
I have a weird scenario were I would like to say that a particular
file exists, when I know that it doesn’t exist on the actual file
system. I already have a working file system filter driver. I would
like to in the Create dispatch routine, check to see if the file being
opened is that specific file, and if it is return success to the caller,
and then process all io to that file object myself without it going to
the file system. The file does NOT exist on the file system, so sending
the request down is useless, nor can I create the file (read only fs).
I know I need to create a file object to do this, but am not sure how…
can this be done?

thanks,
rob


You are currently subscribed to ntfsd as: xxxxx@storagecraft.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