Sync with trunk r58740.
[reactos.git] / drivers / filesystems / fastfat / pnp.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: drivers/filesystems/fastfat/pnp.c
5 * PURPOSE: VFAT Filesystem
6 * PROGRAMMER: Pierre Schweitzer
7 *
8 */
9
10 /* INCLUDES *****************************************************************/
11
12 #define NDEBUG
13 #include "vfat.h"
14
15 /* FUNCTIONS ****************************************************************/
16
17 NTSTATUS VfatPnp(PVFAT_IRP_CONTEXT IrpContext)
18 {
19 PVCB Vcb = NULL;
20 NTSTATUS Status;
21
22 /* PRECONDITION */
23 ASSERT(IrpContext);
24
25 switch (IrpContext->Stack->MinorFunction)
26 {
27 case IRP_MN_QUERY_REMOVE_DEVICE:
28 case IRP_MN_SURPRISE_REMOVAL:
29 case IRP_MN_REMOVE_DEVICE:
30 case IRP_MN_CANCEL_REMOVE_DEVICE:
31 Status = STATUS_NOT_IMPLEMENTED;
32 IrpContext->Irp->IoStatus.Status = Status;
33 IoCompleteRequest(IrpContext->Irp, IO_NO_INCREMENT);
34 break;
35 default:
36 IoSkipCurrentIrpStackLocation(IrpContext->Irp);
37 Vcb = (PVCB)IrpContext->Stack->DeviceObject->DeviceExtension;
38 Status = IoCallDriver(Vcb->StorageDevice, IrpContext->Irp);
39 }
40
41 VfatFreeIrpContext(IrpContext);
42
43 return Status;
44 }