]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: fix bmap command not detecting realtime files with xattrs
authorDarrick J. Wong <djwong@kernel.org>
Thu, 9 Feb 2023 02:14:43 +0000 (18:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 18 Feb 2023 00:50:36 +0000 (16:50 -0800)
Fix the bmap command so that it will detect a realtime file if any of
the other file flags (e.g. xattrs) are set.  Observed via xfs/556.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
io/bmap.c

index 27383ca603755193670bf52e9fe1c9a838f66336..722a389baaa4d8e74009efc29ffaee9ddfe12941 100644 (file)
--- a/io/bmap.c
+++ b/io/bmap.c
@@ -118,7 +118,7 @@ bmap_f(
                        return 0;
                }
 
-               if (fsx.fsx_xflags == FS_XFLAG_REALTIME) {
+               if (fsx.fsx_xflags & FS_XFLAG_REALTIME) {
                        /*
                         * ag info not applicable to rt, continue
                         * without ag output.