Zone file systems are intended to use sequential write required zones
(or areas treated as such) for the main data store. And usually use the
data device only for metadata that requires random writes.
rtinherit=1 is the way to achieve that, so enabled it by default, but
still allow the user to override it if needed.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[aalbersh remove accidental "inherit" word in commit desc.]
}
cli->rtextsize = 0;
}
+
+ /*
+ * Set the rtinherit by default for zoned file systems as they
+ * usually use the data device purely as a metadata container.
+ */
+ if (!cli_opt_set(&dopts, D_RTINHERIT))
+ cli->fsx.fsx_xflags |= FS_XFLAG_RTINHERIT;
} else {
if (cli->rtstart) {
fprintf(stderr,