Skip to content

Commit b94e2d8

Browse files
committed
[CLASS2]
It's up to class drivers to handle MountMgr requests. So, make it handle them, even though that's just to fail because it's not implemented. This will stop IOCTLs to be sent down in the storage stack. svn path=/trunk/; revision=76032
1 parent 350ede0 commit b94e2d8

File tree

1 file changed

+12
-0
lines changed
  • reactos/drivers/storage/class/class2

1 file changed

+12
-0
lines changed

reactos/drivers/storage/class/class2/class2.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <ntddk.h>
1010
#include <ntdddisk.h>
11+
#include <mountdev.h>
1112
#include <scsi.h>
1213
#include <include/class2.h>
1314
#include <stdio.h>
@@ -4040,6 +4041,17 @@ Return Value:
40404041
goto SetStatusAndReturn;
40414042
}
40424043

4044+
if (irpStack->Parameters.DeviceIoControl.IoControlCode == IOCTL_MOUNTDEV_QUERY_DEVICE_NAME ||
4045+
irpStack->Parameters.DeviceIoControl.IoControlCode == IOCTL_MOUNTDEV_QUERY_UNIQUE_ID ||
4046+
irpStack->Parameters.DeviceIoControl.IoControlCode == IOCTL_MOUNTDEV_QUERY_SUGGESTED_LINK_NAME) {
4047+
UNIMPLEMENTED;
4048+
Irp->IoStatus.Information = 0;
4049+
Irp->IoStatus.Status = STATUS_NOT_IMPLEMENTED;
4050+
IoCompleteRequest(Irp, IO_NO_INCREMENT);
4051+
status = STATUS_NOT_IMPLEMENTED;
4052+
goto SetStatusAndReturn;
4053+
}
4054+
40434055
srb = ExAllocatePool(NonPagedPool, SCSI_REQUEST_BLOCK_SIZE);
40444056

40454057
if (srb == NULL) {

0 commit comments

Comments
 (0)