[ros-diffs] [arty] 35403: Don't attempt to mount a partition that starts with a fat bootblock.

arty at svn.reactos.org arty at svn.reactos.org
Sun Aug 17 07:23:11 CEST 2008


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/src/fsctrl.c?rev=35403&r1=35402&r2=35403&view=diff
==============================================================================
--- 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  );



More information about the Ros-diffs mailing list