diff options
author | Artem Blagodarenko <artem.blagodarenko@seagate.com> | 2017-02-15 20:45:00 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-04-13 11:53:38 -0400 |
commit | ae9efd05a9860b53691884f5fed40d37fc3d7edb (patch) | |
tree | 1d13a4cb0aaa0861926c30bdae4c92be24f7aff0 /debugfs | |
parent | 3f0cf647539970474be8f607017ca7eccfc2fbbe (diff) |
e2fsck: 3 level hash tree directory optimization
e2fsck fix for partitions with 3 level hash directries.
Additional level is added to e2fsck -D codepath.
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@seagate.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r-- | debugfs/htree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debugfs/htree.c b/debugfs/htree.c index 54e55e20..8c18666d 100644 --- a/debugfs/htree.c +++ b/debugfs/htree.c @@ -287,7 +287,8 @@ void do_htree_dump(int argc, char *argv[]) fprintf(pager, "\t Indirect levels: %d\n", rootnode->indirect_levels); fprintf(pager, "\t Flags: %d\n", rootnode->unused_flags); - ent = (struct ext2_dx_entry *) (buf + 24 + rootnode->info_length); + ent = (struct ext2_dx_entry *) + ((char *)rootnode + rootnode->info_length); htree_dump_int_node(current_fs, ino, &inode, rootnode, ent, buf + current_fs->blocksize, |