Is the sfilter driver synchronizing the mount handler? For example, does the
main sfilter mount disptch routine wait for the lower driver to complete?
–
Jamey Kirby
Rocket Division Software
xxxxx@rocketdivision.com
www.rocketdivision.com
Is the sfilter driver synchronizing the mount handler? For example, does the
main sfilter mount disptch routine wait for the lower driver to complete?
–
Jamey Kirby
Rocket Division Software
xxxxx@rocketdivision.com
www.rocketdivision.com
Hi James,
This is the sample driver from IFSkits. Following is the mount dispatch
code:
ExInitializeWorkItem( &completionContext-WorkItem,
SfFsControlMountVolumeCompleteWorker,
completionContext );
completionContext->DeviceObject = DeviceObject;
completionContext->Irp = Irp;
completionContext->NewDeviceObject =
newDeviceObject;
IoCopyCurrentIrpStackLocationToNext( Irp );
IoSetCompletionRoutine( Irp,
SfFsControlCompletion,
&completionContextWorkItem,
//context parameter
TRUE,
TRUE,
TRUE );
//
// Call the driver
//
status = IoCallDriver( devExtAttachedToDeviceObject, Irp );
Look like it hands out the mount request to the working thread and return.
Do you think it needs to wait until mount success and return? Thank you for
the reply.
fc
“Jamey Kirby” wrote in message
news:xxxxx@ntfsd…
> Is the sfilter driver synchronizing the mount handler? For example, does
> the main sfilter mount disptch routine wait for the lower driver to
> complete?
>
> –
> Jamey Kirby
> Rocket Division Software
> xxxxx@rocketdivision.com
> www.rocketdivision.com
>
>