Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
e2fsck: add support for dir_data feature
[tools/e2fsprogs.git]
/
e2fsck
/
pass1.c
diff --git
a/e2fsck/pass1.c
b/e2fsck/pass1.c
index
1edf041
..
c2cb567
100644
(file)
--- a/
e2fsck/pass1.c
+++ b/
e2fsck/pass1.c
@@
-2119,7
+2119,7
@@
static int handle_htree(e2fsck_t ctx, struct problem_context *pctx,
}
/* XXX should check that beginning matches a directory */
}
/* XXX should check that beginning matches a directory */
- root =
(struct ext2_dx_root_info *) (block_buf + 24
);
+ root =
get_ext2_dx_root_info(fs, block_buf
);
if ((root->reserved_zero || root->info_length < 8) &&
fix_problem(ctx, PR_1_HTREE_BADROOT, pctx))
if ((root->reserved_zero || root->info_length < 8) &&
fix_problem(ctx, PR_1_HTREE_BADROOT, pctx))