[PATCH 1/4] xfs/273: fix test for internal zoned filesystems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Darrick J. Wong <djwong@xxxxxxxxxx>

For XFS filesystems with internal zoned sections, fsmap reports a u32
cookie for the device instead of an actual major/minor.  Adjust the test
accordingly.

Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx>
---
 tests/xfs/273 |    5 +++++
 1 file changed, 5 insertions(+)


diff --git a/tests/xfs/273 b/tests/xfs/273
index 7e743179975e81..87a1c623b73b46 100755
--- a/tests/xfs/273
+++ b/tests/xfs/273
@@ -50,6 +50,11 @@ rtdev_daddrs=$((rtdev_fsblocks * fsblock_bytes / 512))
 ddev_devno=$(stat -c '%t:%T' $SCRATCH_DEV)
 if [ "$USE_EXTERNAL" = "yes" ] && [ -n "$SCRATCH_RTDEV" ]; then
 	rtdev_devno=$(stat -c '%t:%T' $SCRATCH_RTDEV)
+elif $XFS_INFO_PROG $SCRATCH_MNT | grep -q 'zoned=1'; then
+	# no external rt device and zoned=1 means fsmap reports internal device
+	# numbers instead of block major/minor.
+	ddev_devno="0:1"
+	rtdev_devno="0:3"
 fi
 
 $XFS_IO_PROG -c 'fsmap -m -n 65536' $SCRATCH_MNT | awk -F ',' \





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux