ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

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);
}

Generated on Mon May 28 2012 04:41:13 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.