[FASTFAT]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 14 Feb 2016 19:56:17 +0000 (19:56 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 14 Feb 2016 19:56:17 +0000 (19:56 +0000)
[NTFS]
Thanks to r70746, now, drop our beloved fix/hack/whatever about non-initialized floppy disks.

svn path=/trunk/; revision=70748

reactos/drivers/filesystems/fastfat/fsctl.c
reactos/drivers/filesystems/ntfs/fsctl.c

index 41d9a8d..873b0fc 100644 (file)
@@ -121,16 +121,6 @@ VfatHasFileSystem(
             *RecognizedFS = TRUE;
         }
     }
-    else if (DiskGeometry.MediaType == Unknown)
-    {
-        /*
-         * Floppy disk driver can return Unknown as media type if it
-         * doesn't know yet what floppy in the drive really is. This is
-         * perfectly correct to do under Windows.
-         */
-        *RecognizedFS = TRUE;
-        DiskGeometry.BytesPerSector = 512;
-    }
     else
     {
         *RecognizedFS = TRUE;
index 77fbae3..5550df2 100644 (file)
@@ -89,10 +89,6 @@ 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,