Hi All,
Our file system is receiving a
IRP_SYNCHRONOUS_PAGING_IO write using the fileobject
that was opened for read access only. Is this scenario
OK? Any comments will be appreciated.
Thanks,
AJ.
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com
Yeah this scenario is okay for sure. If my code runs over your file system
you will also see file opened for synchronize access only and recieve hand
rolled regular IRP_MJ_READ on the file; you might also see paging
IRP_MJ_READ in the presence of file locks and if the cache contains dirty
pages for the file then you might see paging IRP_MJ_WRITE.
The “open for xyz access” is dealt with at the IoManager sort of level. Its
not relevant for paging i/o and drivers can bypass it all by sending hand
rolled irp instead of using the system services.
“AJ” wrote in message news:xxxxx@ntfsd… > Hi All, > Our file system is receiving a > IRP_SYNCHRONOUS_PAGING_IO write using the fileobject > that was opened for read access only. Is this scenario > OK? Any comments will be appreciated. > Thanks, > AJ. > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - More reliable, more storage, less spam > http://mail.yahoo.com >
Well, assuming that the file has subsequently been opened for write
access, this is normal behavior - the access checks are associated with
the handle (used by user mode apps) and not with the object itself. The
VM section will used one file object to perform paging I/O, no matter
how many file objects are used to refer to the file.
I believe this is discussed in the FAQ. I know I talk about it in file
systems class as well.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc. http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of AJ
Sent: Thursday, March 18, 2004 12:37 PM
To: ntfsd redirect
Subject: [ntfsd] IRP_SYNCHRONOUS_PAGING_IO write for fileobject with
read access
Hi All,
Our file system is receiving a
IRP_SYNCHRONOUS_PAGING_IO write using the fileobject that was opened for
read access only. Is this scenario OK? Any comments will be appreciated.
Thanks,
AJ.
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com