From: Darrick J. Wong Date: Mon, 25 Sep 2023 21:59:30 +0000 (-0700) Subject: mkfs: enable reverse mapping by default X-Git-Tag: v6.5.0~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcd5b1b766e62e7ad322cc814c142ebbc889101c;p=thirdparty%2Fxfsprogs-dev.git mkfs: enable reverse mapping by default Now that online fsck is feature complete, there's actually a compelling story for having the reverse mappings enabled. Turn it on by default. Signed-off-by: Darrick J. Wong Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/man/man8/mkfs.xfs.8.in b/man/man8/mkfs.xfs.8.in index 3a44b92a6..c152546a4 100644 --- a/man/man8/mkfs.xfs.8.in +++ b/man/man8/mkfs.xfs.8.in @@ -289,8 +289,8 @@ pinpoint exactly which data has been lost when a disk error occurs. .IP By default, .B mkfs.xfs -will not create reverse mapping btrees. This feature is only available -for filesystems created with the (default) +will create reverse mapping btrees when possible. +This feature is only available for filesystems created with the (default) .B \-m crc=1 option set. When the option .B \-m crc=0 diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index a3dcc8113..c522cb4df 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -4134,7 +4134,7 @@ main( .dirftype = true, .finobt = true, .spinodes = true, - .rmapbt = false, + .rmapbt = true, .reflink = true, .inobtcnt = true, .parent_pointers = false,