Saving the pointer to the FILE_OBJECT would be an almost sure-fire
recipe for a mismatch. Saving the whole structure itself doesn’t sound
like such a hot idea either: “A file object is partially opaque. Certain
types of drivers, such as file system drivers and network transport
drivers, use some of the fields of file objects.”
http://msdn2.microsoft.com/en-us/library/aa906961.aspx.
Note the use of the phrase “partially opaque”, that means there’s a
whole bunch of stuff that you probably shouldn’t assume will remain
constant between different openings of the same file. In fact, you
shouldn’t assume anything about it. The documentation will tell you
which members are opaque, and you can decide for yourself if you think
copying the stucture will work, but I’m guessing that anybody here with
a lot of experience (i.e. somebody besides me) will tell you that it
probably won’t work.
~Eric
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Tuesday, October 16, 2007 4:04 AM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] ID of a file write operation
"> My question is: If I save a file named “temp.txt”, it will have some
FILE_OBJECT
structure, then I close the file, open it, and save it again - will it
have the same FILE_OBJECT structure, or a different one?
Different, but probably at the same address as the old one."
So if I save the current structure in a temporary variable, and when I
do the second Save compare it’s FILE_OBJECT with the temporary one -
they will be the same or not? What I understand from your words is that
they will be different. Right?
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars
You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com