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 <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
diff --git a/io/bmap.c b/io/bmap.c
index 27383ca..722a389 100644
--- a/io/bmap.c
+++ b/io/bmap.c
@@ -118,7 +118,7 @@
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.