From 4a77520a9816f0548e9e7f3b2992446a68f4f6fd Mon Sep 17 00:00:00 2001 From: Jon Ernst Date: Thu, 10 Apr 2014 23:06:35 -0400 Subject: [PATCH] e4defrag: open fs with EXT2_FLAG_64BITS flag This allows e4defrag to work with 64-bit and bigalloc file systems. Signed-off-by: Jon Ernst Signed-off-by: "Theodore Ts'o" --- misc/e4defrag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/e4defrag.c b/misc/e4defrag.c index 620f4e798..a1224bbbf 100644 --- a/misc/e4defrag.c +++ b/misc/e4defrag.c @@ -1794,8 +1794,8 @@ int main(int argc, char *argv[]) if (current_uid == ROOT_UID) { /* Get super block info */ - ret = ext2fs_open(dev_name, 0, 0, block_size, - unix_io_manager, &fs); + ret = ext2fs_open(dev_name, EXT2_FLAG_64BITS, 0, + block_size, unix_io_manager, &fs); if (ret) { if (mode_flag & DETAIL) { perror("Can't get super block info"); -- 2.47.2