aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-03-26 21:27:31 -0500
committerEric Sandeen <sandeen@redhat.com>2018-03-26 21:27:31 -0500
commit9cf846b514ff335470f130d635eff525386bab21 (patch)
tree5b04a9d71a782b30a9e1c1041e81b9ab21b4390d
parent938f7b708872d71c143be4d87f774293319c2776 (diff)
downloadxfsprogs-dev-9cf846b514ff335470f130d635eff525386bab21.tar.gz
mkfs: enable sparse inodes by default
Enable the sparse inode feature by default. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--mkfs/xfs_mkfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index 1ca6a2d148..78d0ce5da2 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,