mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +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))
|
if (FsRecGetDeviceSectorSize(MountDevice, &SectorSize))
|
||||||
{
|
{
|
||||||
/* Try to read the superblock */
|
/* Try to read the superblock */
|
||||||
Offset.QuadPart = 0x400;
|
Offset.QuadPart = EXT2_SB_OFFSET;
|
||||||
if (FsRecReadBlock(MountDevice,
|
if (FsRecReadBlock(MountDevice,
|
||||||
&Offset,
|
&Offset,
|
||||||
0x400,
|
EXT2_SB_SIZE,
|
||||||
SectorSize,
|
SectorSize,
|
||||||
(PVOID)&Spb,
|
(PVOID)&Spb,
|
||||||
&DeviceError))
|
&DeviceError))
|
||||||
|
|
|
@ -44,3 +44,5 @@ C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, LastCheck) == 0x40);
|
||||||
C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, DefResUid) == 0x50);
|
C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, DefResUid) == 0x50);
|
||||||
|
|
||||||
#define EXT2_SUPER_MAGIC 0xEF53
|
#define EXT2_SUPER_MAGIC 0xEF53
|
||||||
|
#define EXT2_SB_OFFSET 0x400
|
||||||
|
#define EXT2_SB_SIZE 0x400
|
||||||
|
|
Loading…
Reference in a new issue