]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: enable sparse inodes by default
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Mar 2018 02:27:31 +0000 (21:27 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Mar 2018 02:27:31 +0000 (21:27 -0500)
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>
mkfs/xfs_mkfs.c

index 1ca6a2d148c4bb08483ccbfdcb5e2a8ea4f84f70..78d0ce5da2ce173bb5d5fe95c185bd14509a16da 100644 (file)
@@ -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,