The value must be provided in units of filesystem blocks.
Directories will pass on this hint to newly created regular files and
directories.
+.TP
+.BI daxinherit= value
+If set, all inodes created by
+.B mkfs.xfs
+will be created with the DAX flag set.
+Directories will pass on this flag to newly created regular files and
+directories.
+By default,
+.B mkfs.xfs
+will not enable DAX mode.
.RE
.TP
.B \-f
D_PROJINHERIT,
D_EXTSZINHERIT,
D_COWEXTSIZE,
+ D_DAXINHERIT,
D_MAX_OPTS,
};
[D_PROJINHERIT] = "projinherit",
[D_EXTSZINHERIT] = "extszinherit",
[D_COWEXTSIZE] = "cowextsize",
+ [D_DAXINHERIT] = "daxinherit",
},
.subopt_params = {
{ .index = D_AGCOUNT,
.maxval = UINT_MAX,
.defaultval = SUBOPT_NEEDS_VAL,
},
+ { .index = D_DAXINHERIT,
+ .conflicts = { { NULL, LAST_CONFLICT } },
+ .minval = 0,
+ .maxval = 1,
+ .defaultval = 1,
+ },
},
};
cli->fsx.fsx_cowextsize = getnum(value, opts, subopt);
cli->fsx.fsx_xflags |= FS_XFLAG_COWEXTSIZE;
break;
+ case D_DAXINHERIT:
+ if (getnum(value, opts, subopt))
+ cli->fsx.fsx_xflags |= FS_XFLAG_DAX;
+ else
+ cli->fsx.fsx_xflags &= ~FS_XFLAG_DAX;
+ break;
default:
return -EINVAL;
}