Don't attempt to mount a partition that starts with a fat bootblock.

svn path=/trunk/; revision=35403
This commit is contained in:
Art Yerkes 2008-08-17 05:23:10 +00:00
parent 7c7314849d
commit 8b23bceee1

View file

@ -252,6 +252,14 @@ Ext2MountVolume (
Ext2PerformVerifyDiskRead ( TargetDeviceObject,
BootSector, StartingOffset, NumberOfBytesToRead );
// Reject a volume that contains fat artifacts
DebugTrace(DEBUG_TRACE_MOUNT, "OEM[%s]", BootSector->Oem);
if (BootSector->Oem[0])
{
try_return (STATUS_WRONG_VOLUME);
}
// Allocating memory for reading in Super Block...
SuperBlock = Ext2AllocatePool( PagedPool, NumberOfBytesToRead );