reactos/drivers/storage/partmgr
Hermès Bélusca-Maïto dac991c056
[PARTMGR] Implement support for IOCTL_STORAGE_GET_DEVICE_NUMBER (#7591)
CORE-13525

Now, sending the IOCTL_STORAGE_GET_DEVICE_NUMBER to a disk partition
correctly returns a non-zero STORAGE_DEVICE_NUMBER::PartitionNumber
value. This is used by the BTRFS filesystem driver and other modules.

When the STORAGE_DEVICE_NUMBER DeviceType member equals FILE_DEVICE_DISK,
the DeviceNumber and PartitionNumber correspond respectively to the
X and Y values in the \Device\Harddisk<X>\Partition<Y> device name.

References:
https://learn.microsoft.com/en-us/windows/win32/api/winioctl/ni-winioctl-ioctl_storage_get_device_number
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddstor/ni-ntddstor-ioctl_storage_get_device_number
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddstor/ns-ntddstor-_storage_device_number
2025-01-06 21:26:43 +01:00
..
CMakeLists.txt [BOOTDATA] Fix boot (addendum to dd56e065bc) 2020-12-06 01:55:20 +03:00
debug.h
guid.c
partition.c [PARTMGR] Implement support for IOCTL_STORAGE_GET_DEVICE_NUMBER (#7591) 2025-01-06 21:26:43 +01:00
partmgr.c [PARTMGR] Implement support for IOCTL_STORAGE_GET_DEVICE_NUMBER (#7591) 2025-01-06 21:26:43 +01:00
partmgr.h [PARTMGR] Reimplement IOCTL_MOUNTDEV_QUERY_UNIQUE_ID for MBR and GPT partitions (#6926) 2024-06-12 12:15:31 +02:00
partmgr.rc
partmgr_reg.inf
utils.c