Change the order in which file systems are recognized, do not mistake FAT32 for Ext2.

svn path=/trunk/; revision=42015
This commit is contained in:
Dmitry Gorbachev 2009-07-17 19:14:08 +00:00
parent 3b39cbc701
commit 6d59a5cfa7

View file

@ -36,12 +36,7 @@ BOOLEAN FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* Vol
DPRINTM(DPRINT_FILESYSTEM, "FsRecognizeVolume() DriveNumber: 0x%x VolumeStartSector: %d\n", DriveNumber, VolumeStartSector);
if (FsRecIsExt2(DriveNumber, VolumeStartSector))
{
*VolumeType = PARTITION_EXT2;
return TRUE;
}
else if (FsRecIsFat(DriveNumber, VolumeStartSector))
if (FsRecIsFat(DriveNumber, VolumeStartSector))
{
*VolumeType = PARTITION_FAT32;
return TRUE;
@ -51,6 +46,11 @@ BOOLEAN FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* Vol
*VolumeType = PARTITION_NTFS;
return TRUE;
}
else if (FsRecIsExt2(DriveNumber, VolumeStartSector))
{
*VolumeType = PARTITION_EXT2;
return TRUE;
}
return FALSE;
}