mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[FS_REC]
--MagicValues; svn path=/trunk/; revision=70796
This commit is contained in:
parent
429d288e03
commit
cb7c75c1d1
2 changed files with 4 additions and 2 deletions
|
@ -53,10 +53,10 @@ FsRecExt2FsControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
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))
|
||||
|
|
|
@ -44,3 +44,5 @@ C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, LastCheck) == 0x40);
|
|||
C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, DefResUid) == 0x50);
|
||||
|
||||
#define EXT2_SUPER_MAGIC 0xEF53
|
||||
#define EXT2_SB_OFFSET 0x400
|
||||
#define EXT2_SB_SIZE 0x400
|
||||
|
|
Loading…
Reference in a new issue