diff mbox

[RFC,08/17] Turn on new bitmaps in e2fsck and mke2fs

Message ID 1226461390-5502-9-git-send-email-vaurora@redhat.com
State Superseded, archived
Delegated to: Theodore Ts'o
Headers show

Commit Message

Valerie Aurora Henson Nov. 12, 2008, 3:43 a.m. UTC
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com>
---
 e2fsck/unix.c |    2 +-
 misc/mke2fs.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/e2fsck/unix.c b/e2fsck/unix.c
index 07549b9..bb379f3 100644
--- a/e2fsck/unix.c
+++ b/e2fsck/unix.c
@@ -956,7 +956,7 @@  restart:
 #else
 	io_ptr = unix_io_manager;
 #endif
-	flags = EXT2_FLAG_NOFREE_ON_ERROR;
+	flags = EXT2_FLAG_NOFREE_ON_ERROR | EXT2_FLAG_NEW_BITMAPS;
 	if ((ctx->options & E2F_OPT_READONLY) == 0)
 		flags |= EXT2_FLAG_RW;
 	if ((ctx->mount_flags & EXT2_MF_MOUNTED) == 0)
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 7c35317..4509c1a 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -1868,8 +1868,9 @@  int main (int argc, char *argv[])
 	/*
 	 * Initialize the superblock....
 	 */
-	retval = ext2fs_initialize(device_name, EXT2_FLAG_EXCLUSIVE, &fs_param,
-				   io_ptr, &fs);
+	retval = ext2fs_initialize(device_name,
+				   EXT2_FLAG_EXCLUSIVE | EXT2_FLAG_NEW_BITMAPS,
+				   &fs_param, io_ptr, &fs);
 	if (retval) {
 		com_err(device_name, retval, _("while setting up superblock"));
 		exit(1);