Author: arty
Date: Sun Aug 17 00:23:10 2008
New Revision: 35403
URL:
http://svn.reactos.org/svn/reactos?rev=35403&view=rev
Log:
Don't attempt to mount a partition that starts with a fat bootblock.
Modified:
trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c
Modified: trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
==============================================================================
--- trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c [iso-8859-1] Sun Aug 17 00:23:10
2008
@@ -252,6 +252,14 @@
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 );