mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
3d26d76a4c
CORE-15575 Detect whether the disk is a "super-floppy", which is the name given to partitionless disk having no MBR, with the unique partition volume starting at sector offset zero and spanning the whole disk. The name comes from the fact that at the partitioning level, the disk "looks like" a large-capacity floppy disk. This is typically how external removable (USB, ...) drives are partitioned by default by Windows. https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11#superfloppy The kernel-mode functions IoReadPartitionTable() / IoWritePartitionTable() report the drive layout of a "super-floppy" disk as follows: an MBR-style disk containing only one single partition starting at the beginning of the disk (StartingOffset == 0) without hidden sectors, and its type being FAT16 non-bootable. The disk NTFT signature is set to 0x00000001. ---- Additional bug fixes to make the feature work reliably: - Make PartMgrGetDriveLayout() also update the FDO DiskData's PartitionStyle and Signature/GPT DiskId for consistency (code moved from PartMgrRefreshDiskData()). - In FdoIoctlDiskSetDriveLayout[Ex](), if the disk is "super-floppy", but the user wants to create more than one partition, fail the call. (In the Ex call, fail also if the partition style changes.) |
||
---|---|---|
.. | ||
base | ||
battery | ||
bluetooth | ||
bus | ||
crypto | ||
filesystems | ||
filters | ||
hid | ||
input | ||
ksfilter | ||
multimedia | ||
network | ||
parallel | ||
processor | ||
sac | ||
serial | ||
setup | ||
storage | ||
usb | ||
wdm | ||
wmi | ||
CMakeLists.txt |