mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[NTFS]
It seems that our disk.sys returns "unknown" media type when performing IOCTL_DISK_GET_DRIVE_GEOMETRY on an extended partition. Not sure how Windows handles this (if any volunteer for a test :-)), in the meantime, forcibly sector size to 512B to allow NTFS driver opening volumes on extended partitions svn path=/trunk/; revision=68835
This commit is contained in:
parent
ed7c0959c6
commit
b3ec3aeb5a
1 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,10 @@ NtfsHasFileSystem(PDEVICE_OBJECT DeviceToMount)
|
|||
return STATUS_UNRECOGNIZED_VOLUME;
|
||||
}
|
||||
}
|
||||
else if (DiskGeometry.MediaType == Unknown)
|
||||
{
|
||||
DiskGeometry.BytesPerSector = 512;
|
||||
}
|
||||
|
||||
DPRINT1("BytesPerSector: %lu\n", DiskGeometry.BytesPerSector);
|
||||
BootSector = ExAllocatePoolWithTag(NonPagedPool,
|
||||
|
|
Loading…
Reference in a new issue