From: Darrick J. Wong Date: Thu, 16 Feb 2023 21:53:10 +0000 (-0800) Subject: xfs_io: fix bmap command not detecting realtime files with xattrs X-Git-Tag: origin/for-next_2023-03-01~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1faed5f7875a69d475d64942d74456079fc178d;p=thirdparty%2Fxfsprogs-dev.git xfs_io: fix bmap command not detecting realtime files with xattrs 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 Reviewed-by: Christoph Hellwig Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/io/bmap.c b/io/bmap.c index 27383ca60..722a389ba 100644 --- 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.