mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 08:53:01 -05:00
sys: FspFileNodeOplockCheckAsyncEx: DEBUGTEST
This commit is contained in:
parent
1ffba78a18
commit
002a0262f7
@ -1276,15 +1276,27 @@ NTSTATUS FspFileNodeOplockCheckAsyncEx(
|
|||||||
POPLOCK_FS_PREPOST_IRP PostIrpRoutine)
|
POPLOCK_FS_PREPOST_IRP PostIrpRoutine)
|
||||||
{
|
{
|
||||||
FSP_FILE_NODE_OPLOCK_CONTEXT OplockContext;
|
FSP_FILE_NODE_OPLOCK_CONTEXT OplockContext;
|
||||||
|
NTSTATUS Result;
|
||||||
OplockContext.FileNode = FileNode;
|
OplockContext.FileNode = FileNode;
|
||||||
OplockContext.AcquireFlags = AcquireFlags;
|
OplockContext.AcquireFlags = AcquireFlags;
|
||||||
OplockContext.PrepareContext = PrepareContext;
|
OplockContext.PrepareContext = PrepareContext;
|
||||||
return FspCheckOplock(
|
Result = FspCheckOplock(
|
||||||
FspFileNodeAddrOfOplock(FileNode),
|
FspFileNodeAddrOfOplock(FileNode),
|
||||||
Irp,
|
Irp,
|
||||||
&OplockContext,
|
&OplockContext,
|
||||||
CompletionRoutine,
|
CompletionRoutine,
|
||||||
PostIrpRoutine);
|
PostIrpRoutine);
|
||||||
|
#if DBG
|
||||||
|
if (STATUS_SUCCESS == Result && DEBUGTEST(10))
|
||||||
|
{
|
||||||
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||||
|
Irp->IoStatus.Information = 0;
|
||||||
|
PostIrpRoutine(&OplockContext, Irp);
|
||||||
|
CompletionRoutine(&OplockContext, Irp);
|
||||||
|
Result = STATUS_PENDING;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return Result;
|
||||||
}
|
}
|
||||||
static inline
|
static inline
|
||||||
PVOID FspFileNodeReleaseForOplock(FSP_FILE_NODE_OPLOCK_CONTEXT *OplockContext)
|
PVOID FspFileNodeReleaseForOplock(FSP_FILE_NODE_OPLOCK_CONTEXT *OplockContext)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user