[PARTMGR] Filter some currently-unimplemented MountMgr MOUNTDEV notifications.

CORE-17200

Helps reducing debug log noise like:
```
(drivers\storage\port\scsiport\ioctl.c:542) unknown ioctl code: 0x4D0018
```

The other notifications are already implemented there.
These are handled by the volume manager, which is currently
stubbed into ReactOS' partition manager.

See commit ed27d733f7 for what the deprecated versions
of IOCTL_MOUNTDEV_LINK_[CREATED|DELETED] are all about.
This commit is contained in:
Hermès Bélusca-Maïto 2024-05-25 23:22:00 +02:00
parent 738c8fc27c
commit 61b7fb99eb
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -980,6 +980,23 @@ PartitionHandleDeviceControl(
Irp->IoStatus.Information = headerSize + uniqueId->UniqueIdLength; Irp->IoStatus.Information = headerSize + uniqueId->UniqueIdLength;
break; break;
} }
case IOCTL_MOUNTDEV_QUERY_SUGGESTED_LINK_NAME:
case IOCTL_MOUNTDEV_LINK_CREATED:
case IOCTL_MOUNTDEV_LINK_DELETED:
#if (NTDDI_VERSION >= NTDDI_WS03)
/* Deprecated Windows 2000/XP versions of IOCTL_MOUNTDEV_LINK_[CREATED|DELETED]
* without access protection, that were updated in Windows 2003 */
case CTL_CODE(MOUNTDEVCONTROLTYPE, 4, METHOD_BUFFERED, FILE_ANY_ACCESS):
case CTL_CODE(MOUNTDEVCONTROLTYPE, 5, METHOD_BUFFERED, FILE_ANY_ACCESS):
#endif
case IOCTL_MOUNTDEV_QUERY_STABLE_GUID:
case IOCTL_MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY:
{
WARN("Ignored MountMgr notification: 0x%lX\n",
ioStack->Parameters.DeviceIoControl.IoControlCode);
status = STATUS_NOT_IMPLEMENTED;
break;
}
default: default:
return ForwardIrpAndForget(DeviceObject, Irp); return ForwardIrpAndForget(DeviceObject, Irp);
} }