.IP
By default,
.B mkfs.xfs
-will not enable metadata CRCs.
+will enable metadata CRCs.
.TP
.BI finobt= value
This option enables the use of a separate free inode btree index in each
.IP
By default,
.B mkfs.xfs
-will not create free inode btrees. This feature is also currently only available
-for filesystems created with the
+will create free inode btrees for filesystems created with the (default)
.B \-m crc=1
-option set.
+option set. When the option
+.B \-m crc=0
+is used, the free inode btree feature is not supported and is disabled.
.RE
.TP
.BI \-d " data_section_options"
int lazy_sb_counters;
int crcs_enabled;
int finobt;
+ bool finobtflag;
progname = basename(argv[0]);
setlocale(LC_ALL, "");
force_overwrite = 0;
worst_freelist = 0;
lazy_sb_counters = 1;
- crcs_enabled = 0;
- finobt = 0;
+ crcs_enabled = 1;
+ finobt = 1;
+ finobtflag = false;
memset(&fsx, 0, sizeof(fsx));
memset(&xi, 0, sizeof(xi));
if (c < 0 || c > 1)
illegal(value, "m finobt");
finobt = c;
+ finobtflag = true;
break;
default:
unknown('m', value);
_("32 bit Project IDs always enabled on CRC enabled filesytems\n"));
usage();
}
- }
-
- /*
- * The kernel doesn't currently support crc=0,finobt=1 filesystems.
- * Catch it here, disable finobt and warn the user.
- */
- if (finobt && !crcs_enabled) {
- fprintf(stderr,
+ } else {
+ /*
+ * The kernel doesn't currently support crc=0,finobt=1
+ * filesystems. If crcs are not enabled and the user has
+ * explicitly turned them off then silently turn them off
+ * to avoid an unnecessary warning. If the user explicitly
+ * tried to use crc=0,finobt=1, then issue a warning before
+ * turning them off.
+ */
+ if (finobt && finobtflag) {
+ fprintf(stderr,
_("warning: finobt not supported without CRC support, disabled.\n"));
+ }
finobt = 0;
}