Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 744 of file create.c.
Referenced by VfatDispatchRequest().
{ NTSTATUS Status; ASSERT(IrpContext); if (IrpContext->DeviceObject == VfatGlobalData->DeviceObject) { /* DeviceObject represents FileSystem instead of logical volume */ DPRINT ("FsdCreate called with file system\n"); IrpContext->Irp->IoStatus.Information = FILE_OPENED; IrpContext->Irp->IoStatus.Status = STATUS_SUCCESS; IoCompleteRequest (IrpContext->Irp, IO_DISK_INCREMENT); VfatFreeIrpContext(IrpContext); return(STATUS_SUCCESS); } if (!(IrpContext->Flags & IRPCONTEXT_CANWAIT)) { return(VfatQueueRequest (IrpContext)); } IrpContext->Irp->IoStatus.Information = 0; ExAcquireResourceExclusiveLite (&IrpContext->DeviceExt->DirResource, TRUE); Status = VfatCreateFile (IrpContext->DeviceObject, IrpContext->Irp); ExReleaseResourceLite (&IrpContext->DeviceExt->DirResource); IrpContext->Irp->IoStatus.Status = Status; IoCompleteRequest (IrpContext->Irp, (CCHAR)(NT_SUCCESS(Status) ? IO_DISK_INCREMENT : IO_NO_INCREMENT)); VfatFreeIrpContext(IrpContext); return(Status); }