mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTFS]
Set a flag in the IRP context when an IRP can wait on locking svn path=/trunk/; revision=67538
This commit is contained in:
parent
344e771eb2
commit
0e1b711195
2 changed files with 12 additions and 0 deletions
|
@ -88,6 +88,16 @@ NtfsAllocateIrpContext(PDEVICE_OBJECT DeviceObject,
|
|||
IrpContext->MinorFunction = IoStackLocation->MinorFunction;
|
||||
IrpContext->IsTopLevel = (IoGetTopLevelIrp() == Irp);
|
||||
|
||||
if (IoStackLocation->MajorFunction == IRP_MJ_FILE_SYSTEM_CONTROL ||
|
||||
IoStackLocation->MajorFunction == IRP_MJ_DEVICE_CONTROL ||
|
||||
IoStackLocation->MajorFunction == IRP_MJ_SHUTDOWN ||
|
||||
(IoStackLocation->MajorFunction != IRP_MJ_CLEANUP &&
|
||||
IoStackLocation->MajorFunction != IRP_MJ_CLOSE &&
|
||||
IoIsOperationSynchronous(Irp)))
|
||||
{
|
||||
IrpContext->Flags |= IRPCONTEXT_CANWAIT;
|
||||
}
|
||||
|
||||
return IrpContext;
|
||||
}
|
||||
|
||||
|
|
|
@ -391,6 +391,8 @@ typedef struct {
|
|||
UCHAR Data[1];
|
||||
} REPARSE_POINT_ATTRIBUTE, *PREPARSE_POINT_ATTRIBUTE;
|
||||
|
||||
#define IRPCONTEXT_CANWAIT 0x1
|
||||
|
||||
typedef struct
|
||||
{
|
||||
NTFSIDENTIFIER Identifier;
|
||||
|
|
Loading…
Reference in a new issue