Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc7fea
)
e2fsck: fix off-by-one check when validating depth of an htree
author
Theodore Ts'o
<tytso@mit.edu>
Fri, 10 Apr 2020 04:30:52 +0000
(
00:30
-0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 14 Apr 2020 01:58:21 +0000
(21:58 -0400)
Fixes:
3f0cf6475399
("e2fsprogs: add support for 3-level htree")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c
patch
|
blob
|
history
diff --git
a/e2fsck/pass1.c
b/e2fsck/pass1.c
index
c9e8bf8
..
38afda4
100644
(file)
--- a/
e2fsck/pass1.c
+++ b/
e2fsck/pass1.c
@@
-2685,7
+2685,7
@@
static int handle_htree(e2fsck_t ctx, struct problem_context *pctx,
return 1;
pctx->num = root->indirect_levels;
- if ((root->indirect_levels > ext2_dir_htree_level(fs)) &&
+ if ((root->indirect_levels >
=
ext2_dir_htree_level(fs)) &&
fix_problem(ctx, PR_1_HTREE_DEPTH, pctx))
return 1;