a1e909e7da9d8d7c6378d8fd29ae0e1958c0801e
[reactos.git] / reactos / 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 break;
33 default:
34 IoSkipCurrentIrpStackLocation(IrpContext->Irp);
35 Vcb = (PVCB)IrpContext->Stack->DeviceObject->DeviceExtension;
36 Status = IoCallDriver(Vcb->StorageDevice, IrpContext->Irp);
37 }
38
39 VfatFreeIrpContext(IrpContext);
40
41 return Status;
42 }