From: Darrick J. Wong Date: Tue, 27 Mar 2018 02:27:31 +0000 (-0500) Subject: mkfs: enable sparse inodes by default X-Git-Tag: v4.16.0-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cf846b514ff335470f130d635eff525386bab21;p=thirdparty%2Fxfsprogs-dev.git mkfs: enable sparse inodes by default Enable the sparse inode feature by default. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 1ca6a2d14..78d0ce5da 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -1996,7 +1996,7 @@ _("finobt not supported without CRC support\n")); } cli->sb_feat.finobt = false; - if (cli->sb_feat.spinodes) { + if (cli->sb_feat.spinodes && cli_opt_set(&iopts, I_SPINODES)) { fprintf(stderr, _("sparse inodes not supported without CRC support\n")); usage(); @@ -3811,7 +3811,7 @@ main( .crcs_enabled = true, .dirftype = true, .finobt = true, - .spinodes = false, + .spinodes = true, .rmapbt = false, .reflink = false, .parent_pointers = false,