From: Christoph Hellwig Date: Mon, 14 Apr 2025 05:36:16 +0000 (+0200) Subject: xfs_mkfs: default to rtinherit=1 for zoned file systems X-Git-Tag: v6.15.0~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=308f80b53f5e5d73e7a98c3fd3111e2152a7d199;p=thirdparty%2Fxfsprogs-dev.git xfs_mkfs: default to rtinherit=1 for zoned file systems 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 Reviewed-by: Darrick J. Wong [aalbersh remove accidental "inherit" word in commit desc.] --- diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 8768fbb1..5882ee48 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -2966,6 +2966,13 @@ _("rt extent size not supported on realtime devices with zoned mode\n")); } 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,