From: Darrick J. Wong Date: Tue, 13 Dec 2022 19:39:43 +0000 (-0800) Subject: xfs_io: don't display stripe alignment flags for realtime files X-Git-Tag: origin/for-next_2022-12-17~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6fb1c078f00c6dd54d4dfdf187a2b5fcc6ec09c;p=thirdparty%2Fxfsprogs-dev.git xfs_io: don't display stripe alignment flags for realtime files The stripe unit/width optimizations only occur on the data device, which means that it makes no sense to report non-stripe-aligned realtime extents. Signed-off-by: Darrick J. Wong Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/io/fsmap.c b/io/fsmap.c index 9dd19cc04..7db51847e 100644 --- a/io/fsmap.c +++ b/io/fsmap.c @@ -197,7 +197,7 @@ dump_map_verbose( p->fmr_flags & FMR_OF_ATTR_FORK || p->fmr_flags & FMR_OF_SHARED) flg = 1; - if (sunit && + if (sunit && p->fmr_device == xfs_data_dev && (p->fmr_physical % sunit != 0 || ((p->fmr_physical + p->fmr_length) % sunit) != 0 || p->fmr_physical % swidth != 0 || @@ -273,7 +273,7 @@ dump_map_verbose( * If striping enabled, determine if extent starts/ends * on a stripe unit boundary. */ - if (sunit) { + if (sunit && p->fmr_device == xfs_data_dev) { if (p->fmr_physical % sunit != 0) flg |= FLG_BSU; if (((p->fmr_physical +