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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Valerie Aurora Henson <vaurora@xxxxxxxxxx>
---
 e2fsck/unix.c |    2 +-
 misc/mke2fs.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

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);
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux