Author: pschweitzer
Date: Sun Feb 28 11:27:05 2016
New Revision: 70796
URL:
http://svn.reactos.org/svn/reactos?rev=70796&view=rev
Log:
[FS_REC]
--MagicValues;
Modified:
trunk/reactos/drivers/filesystems/fs_rec/ext2.c
trunk/reactos/drivers/filesystems/fs_rec/ext2.h
Modified: trunk/reactos/drivers/filesystems/fs_rec/ext2.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
==============================================================================
--- trunk/reactos/drivers/filesystems/fs_rec/ext2.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fs_rec/ext2.c [iso-8859-1] Sun Feb 28 11:27:05 2016
@@ -53,10 +53,10 @@
if (FsRecGetDeviceSectorSize(MountDevice, &SectorSize))
{
/* Try to read the superblock */
- Offset.QuadPart = 0x400;
+ Offset.QuadPart = EXT2_SB_OFFSET;
if (FsRecReadBlock(MountDevice,
&Offset,
- 0x400,
+ EXT2_SB_SIZE,
SectorSize,
(PVOID)&Spb,
&DeviceError))
Modified: trunk/reactos/drivers/filesystems/fs_rec/ext2.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
==============================================================================
--- trunk/reactos/drivers/filesystems/fs_rec/ext2.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fs_rec/ext2.h [iso-8859-1] Sun Feb 28 11:27:05 2016
@@ -44,3 +44,5 @@
C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, DefResUid) == 0x50);
#define EXT2_SUPER_MAGIC 0xEF53
+#define EXT2_SB_OFFSET 0x400
+#define EXT2_SB_SIZE 0x400