[FASTFAT]
[reactos.git] / reactos / drivers / filesystems / fastfat / misc.c
index 53edd8b..ddd547f 100644 (file)
@@ -93,6 +93,16 @@ Fail:
     return Status;
 }
 
+static
+NTSTATUS
+VfatDeviceControl(
+    IN PVFAT_IRP_CONTEXT IrpContext)
+{
+    IoSkipCurrentIrpStackLocation(IrpContext->Irp);
+
+    return IoCallDriver(IrpContext->DeviceExt->StorageDevice, IrpContext->Irp);
+}
+
 static
 NTSTATUS
 VfatDispatchRequest(
@@ -127,6 +137,8 @@ VfatDispatchRequest(
             return VfatSetVolumeInformation(IrpContext);
         case IRP_MJ_LOCK_CONTROL:
             return VfatLockControl(IrpContext);
+        case IRP_MJ_DEVICE_CONTROL:
+            return VfatDeviceControl(IrpContext);
         case IRP_MJ_CLEANUP:
             return VfatCleanup(IrpContext);
         case IRP_MJ_FLUSH_BUFFERS:
@@ -300,4 +312,3 @@ VfatLockUserBuffer(
 
     return STATUS_SUCCESS;
 }
-