]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Use rbtree bitmaps for dumpe2fs, debugfs, and tune2fs
authorTheodore Ts'o <tytso@mit.edu>
Thu, 15 Mar 2012 20:39:56 +0000 (16:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Mar 2012 20:39:56 +0000 (16:39 -0400)
For large file systems, using the rbtree bitmap can save a lot of
memory.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/debugfs.c
misc/dumpe2fs.c
misc/tune2fs.c

index 04d5139519a22401903c5a9a7ecd4af754dfbfb2..574759b47e61216d34f872aaa3da4fdec0ae0198 100644 (file)
@@ -89,6 +89,7 @@ static void open_filesystem(char *device, int open_flags, blk64_t superblock,
                current_fs = NULL;
                return;
        }
+       current_fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE;
 
        if (catastrophic)
                com_err(device, 0, "catastrophic mode - not reading inode or group bitmaps");
index 7b7e3fe286d4c226515ab6c8468fdd2ab98c585c..b91c383152eb0d4a23e20d1d8adade698d5c6684 100644 (file)
@@ -580,6 +580,7 @@ int main (int argc, char ** argv)
                printf (_("Couldn't find valid filesystem superblock.\n"));
                exit (1);
        }
+       fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE;
        if (print_badblocks) {
                list_bad_blocks(fs, 1);
        } else {
index 74a04890bb29ad00cd5e1540163d8b5bba7aec57..e49b4333418864b16e11938d31728bd815c25cfd 100644 (file)
@@ -1925,6 +1925,7 @@ retry_open:
                ext2fs_free(fs);
                exit(1);
        }
+       fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE;
 
        if (I_flag && !io_ptr_orig) {
                /*