Skip to contentSkip to conversation

xfs_io: fix bmap command not detecting realtime files with xattrs

PATCH In review Darrick J. Wong 3 participants 3 messages Feb 9, 2023 – Feb 22, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs_io: fix bmap command not detecting realtime files with xattrs

From: Darrick J. Wong <[email protected]>

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.

---
 io/bmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
io/bmap.c +1 -1
index a78e0c65440..11bbc0629cf 100644
@@ -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.
Reviewed-by on v1 1/1
#2 lore raw
In reply to Darrick J. Wong
Quoted 6 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

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.

Looks good to me.

Quoted 17 lines
---
 io/bmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
io/bmap.c +1 -1
index a78e0c65440..11bbc0629cf 100644
@@ -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.
Signature · 1 line
Carlos Maiolino