mirror of
https://github.com/reactos/reactos.git
synced 2025-05-17 16:27:00 +00:00
[SCSIPORT] Better error messages when receiving unexpected IOCTLs of mount manager
svn path=/trunk/; revision=65454
This commit is contained in:
parent
bcc95895c6
commit
997dd60f96
1 changed files with 15 additions and 2 deletions
|
@ -34,6 +34,7 @@
|
||||||
#include <scsi.h>
|
#include <scsi.h>
|
||||||
#include <ntddscsi.h>
|
#include <ntddscsi.h>
|
||||||
#include <ntdddisk.h>
|
#include <ntdddisk.h>
|
||||||
|
#include <mountdev.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
@ -2877,8 +2878,20 @@ ScsiPortDeviceControl(IN PDEVICE_OBJECT DeviceObject,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if ('M' == (Stack->Parameters.DeviceIoControl.IoControlCode >> 16)) {
|
if (DEVICE_TYPE_FROM_CTL_CODE(Stack->Parameters.DeviceIoControl.IoControlCode) == MOUNTDEVCONTROLTYPE)
|
||||||
DPRINT1(" got ioctl intended for the mount manager: 0x%lX\n", Stack->Parameters.DeviceIoControl.IoControlCode);
|
{
|
||||||
|
switch (Stack->Parameters.DeviceIoControl.IoControlCode)
|
||||||
|
{
|
||||||
|
case IOCTL_MOUNTDEV_QUERY_DEVICE_NAME:
|
||||||
|
DPRINT1("Got unexpected IOCTL_MOUNTDEV_QUERY_DEVICE_NAME\n");
|
||||||
|
break;
|
||||||
|
case IOCTL_MOUNTDEV_QUERY_UNIQUE_ID:
|
||||||
|
DPRINT1("Got unexpected IOCTL_MOUNTDEV_QUERY_UNIQUE_ID\n");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
DPRINT1(" got ioctl intended for the mount manager: 0x%lX\n", Stack->Parameters.DeviceIoControl.IoControlCode);
|
||||||
|
break;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
DPRINT1(" unknown ioctl code: 0x%lX\n", Stack->Parameters.DeviceIoControl.IoControlCode);
|
DPRINT1(" unknown ioctl code: 0x%lX\n", Stack->Parameters.DeviceIoControl.IoControlCode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue