mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
sys: create: oplock testing
This commit is contained in:
parent
0a59c5d685
commit
6a48087d5f
@ -845,11 +845,10 @@ NTSTATUS FspFsvolCreateComplete(
|
|||||||
FspIopSetIrpResponse(Irp, Response);
|
FspIopSetIrpResponse(Irp, Response);
|
||||||
FspIopRequestContext(Request, FspIopRequestExtraContext) = FileNode;
|
FspIopRequestContext(Request, FspIopRequestExtraContext) = FileNode;
|
||||||
|
|
||||||
Irp->IoStatus.Information = 0;
|
|
||||||
Result = FspFsvolCreateSharingViolationOplock(
|
Result = FspFsvolCreateSharingViolationOplock(
|
||||||
FsvolDeviceObject, Irp, IrpSp, FALSE);
|
FsvolDeviceObject, Irp, IrpSp, FALSE);
|
||||||
|
if (STATUS_PENDING == Result)
|
||||||
FSP_RETURN();
|
FSP_RETURN();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* unable to open the FileNode; post a Close request */
|
/* unable to open the FileNode; post a Close request */
|
||||||
@ -1268,6 +1267,7 @@ static NTSTATUS FspFsvolCreateSharingViolationOplock(
|
|||||||
return FspWqRepostIrpWorkItem(Irp,
|
return FspWqRepostIrpWorkItem(Irp,
|
||||||
FspFsvolCreateSharingViolationOplock, FspFsvolCreateRequestFini);
|
FspFsvolCreateSharingViolationOplock, FspFsvolCreateRequestFini);
|
||||||
|
|
||||||
|
Irp->IoStatus.Information = 0;
|
||||||
return STATUS_SHARING_VIOLATION;
|
return STATUS_SHARING_VIOLATION;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user