From d0991a7a56d6b007c3974835619c6819c146a231 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 8 Apr 2025 09:24:59 +0200 Subject: [PATCH] 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 data, and the main data device only for metadata. rtinherit=1 is the way to achieve that, so enabled it by default. Signed-off-by: Christoph Hellwig --- mkfs/xfs_mkfs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index b7057c4ff..e470a11f6 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -2957,6 +2957,13 @@ _("rt extent size not supported on realtime devices with zoned mode\n")); } cli->rtextsize = 0; } + + /* + * Force the rtinherit flag on the root inode for zoned file + * systems as they use the data device only as a metadata + * container. + */ + cli->fsx.fsx_xflags |= FS_XFLAG_RTINHERIT; } else { if (cli->rtstart) { fprintf(stderr, -- 2.50.1