[FASTFAT]

Don't attempt to mount any partition just because we have a valid partition table...
Restrict this to them being marked as FAT or compatible.

svn path=/trunk/; revision=65115
This commit is contained in:
Pierre Schweitzer 2014-10-29 22:51:16 +00:00
parent d22dd7da46
commit c9ec1555ad

View file

@ -89,7 +89,6 @@ VfatHasFileSystem(
return Status; return Status;
} }
PartitionInfoIsValid = TRUE;
DPRINT("Partition Information:\n"); DPRINT("Partition Information:\n");
DPRINT("StartingOffset %I64x\n", PartitionInfo.StartingOffset.QuadPart / 512); DPRINT("StartingOffset %I64x\n", PartitionInfo.StartingOffset.QuadPart / 512);
DPRINT("PartitionLength %I64x\n", PartitionInfo.PartitionLength.QuadPart / 512); DPRINT("PartitionLength %I64x\n", PartitionInfo.PartitionLength.QuadPart / 512);
@ -108,6 +107,7 @@ VfatHasFileSystem(
PartitionInfo.PartitionType == PARTITION_FAT32_XINT13 || PartitionInfo.PartitionType == PARTITION_FAT32_XINT13 ||
PartitionInfo.PartitionType == PARTITION_XINT13) PartitionInfo.PartitionType == PARTITION_XINT13)
{ {
PartitionInfoIsValid = TRUE;
*RecognizedFS = TRUE; *RecognizedFS = TRUE;
} }
} }
@ -117,6 +117,7 @@ VfatHasFileSystem(
PartitionInfo.PartitionLength.QuadPart > 0) PartitionInfo.PartitionLength.QuadPart > 0)
{ {
/* This is possible a removable media formated as super floppy */ /* This is possible a removable media formated as super floppy */
PartitionInfoIsValid = TRUE;
*RecognizedFS = TRUE; *RecognizedFS = TRUE;
} }
} }