Author: pschweitzer
Date: Thu Aug 27 20:56:08 2015
New Revision: 68835
URL: http://svn.reactos.org/svn/reactos?rev=68835&view=rev
Log:
[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
Modified:
trunk/reactos/drivers/filesystems/ntfs/fsctl.c
Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] Thu Aug 27 20:56:08 2015
@@ -89,6 +89,10 @@
return STATUS_UNRECOGNIZED_VOLUME;
}
}
+ else if (DiskGeometry.MediaType == Unknown)
+ {
+ DiskGeometry.BytesPerSector = 512;
+ }
DPRINT1("BytesPerSector: %lu\n", DiskGeometry.BytesPerSector);
BootSector = ExAllocatePoolWithTag(NonPagedPool,