]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: don't display stripe alignment flags for realtime files
authorDarrick J. Wong <djwong@kernel.org>
Tue, 13 Dec 2022 19:39:43 +0000 (11:39 -0800)
committerCarlos Maiolino <cem@kernel.org>
Thu, 15 Dec 2022 05:57:19 +0000 (06:57 +0100)
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 <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
io/fsmap.c

index 9dd19cc04a9eb064b407847d22b53e441b494ab5..7db51847e2b93e4dee40de34fde060d211f63634 100644 (file)
@@ -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 +