functions for IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION

In the IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION callback , I want
to send the same operation(FS_FILTER_ACQUIRE_FOR_SECTION_SYNCHRONIZATION)
to a separate but identical file. What is the best way or functions call(s) to use in order to achieve that? There used to be a function called AcquireFileForNtCreateSection(), but
that is not supported any more.

John W.

Depending on your architecture you can just swap the file objects in the
callback data and mark it dirty, but take care because there are dragons in
there and if you end up not protecting what you the system expects you’ll
get crashes or corruption

wrote in message news:xxxxx@ntfsd…

In the IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION callback , I want
to send the same operation(FS_FILTER_ACQUIRE_FOR_SECTION_SYNCHRONIZATION)
to a separate but identical file. What is the best way or functions call(s)
to use in order to achieve that? There used to be a function called
AcquireFileForNtCreateSection(), but
that is not supported any more.

John W.

Sorry, I forgot to mention that the operation goes to both the primary
file and back up file. Swapping file objects will not help my case,
Would it?

John W.

Depending on your architecture you can just swap the file objects in the
callback data and mark it dirty, but take care because there are dragons
in
there and if you end up not protecting what you the system expects you’ll
get crashes or corruption

wrote in message news:xxxxx@ntfsd…

In the IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION callback , I want
to send the same operation(FS_FILTER_ACQUIRE_FOR_SECTION_SYNCHRONIZATION)
to a separate but identical file. What is the best way or functions
call(s)
to use in order to achieve that? There used to be a function called
AcquireFileForNtCreateSection(), but
that is not supported any more.

John W.


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

John W.

Twin Peaks Software
Innovation for business continuity
E-mail: xxxxx@TwinPeakSoft.com
Tel: (510) 438-0536

I’ve never done it, but isn’t FltReissueSynchronousIo what you need?

“John Wong” wrote in message news:xxxxx@ntfsd…

Sorry, I forgot to mention that the operation goes to both the primary
file and back up file. Swapping file objects will not help my case,
Would it?

John W.

FltReissueSynchronousIo works on IRP-based I/O operations. The operation
for IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION is not a
IRP-based operation. So that won’t work.

John W.

I’ve never done it, but isn’t FltReissueSynchronousIo what you need?