File mapping awareness from Create

Is there any way to do this. To know that a file is about to be file mapped, or what create options/dispositions are incompatible with the createfilemapping, so that I know, this kind of create will never allow mapping to take place.

I know it is impossible to know for sure, but I need an app that is very user interactive on the I/O side, so I would rather not wait for the Modified Page Writer to flush data to disk, but synch the data just as it is modified in memory.

Thanks.

IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION comes with SyncType
CreateSection (or something like that). As far as I know, you don’t
need to createfile with any specific permissions to create a section
object. The CreateFileMapping docs detail what permissions you need to
create a section with the various mapping permissions.

Take a look at the last two emails I sent about MmCanTruncateFile (or
whatever it’s called, I’m working on three different things at the
moment). It seems to work, and nobody has told me I’m an idiot yet :wink:

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Thursday, October 09, 2008 10:36 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] File mapping awareness from Create

Is there any way to do this. To know that a file is about to be file
mapped, or what create options/dispositions are incompatible with the
createfilemapping, so that I know, this kind of create will never allow
mapping to take place.

I know it is impossible to know for sure, but I need an app that is very
user interactive on the I/O side, so I would rather not wait for the
Modified Page Writer to flush data to disk, but synch the data just as
it is modified in memory.

Thanks.


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

Eric thanks.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Thursday, October 09, 2008 6:10 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] File mapping awareness from Create

IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION comes with SyncType
CreateSection (or something like that). As far as I know, you don’t
need to createfile with any specific permissions to create a section
object. The CreateFileMapping docs detail what permissions you need to
create a section with the various mapping permissions.

Take a look at the last two emails I sent about MmCanTruncateFile (or
whatever it’s called, I’m working on three different things at the
moment). It seems to work, and nobody has told me I’m an idiot yet :wink:

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Thursday, October 09, 2008 10:36 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] File mapping awareness from Create

Is there any way to do this. To know that a file is about to be file
mapped, or what create options/dispositions are incompatible with the
createfilemapping, so that I know, this kind of create will never allow
mapping to take place.

I know it is impossible to know for sure, but I need an app that is very
user interactive on the I/O side, so I would rather not wait for the
Modified Page Writer to flush data to disk, but synch the data just as
it is modified in memory.

Thanks.


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


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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com