From da8f501cb3ccf2fef04837b74fa0f525e50f6d7e Mon Sep 17 00:00:00 2001 From: Dave Chinner Date: Thu, 14 May 2015 12:19:41 +1000 Subject: [PATCH] xfs/045: can't change UUID on v5 filesystems. So pass "-m crc=0" to the scratch_mkfs command so that we only run on old v4 format filesystems where the UUID can be changed. Signed-off-by: Dave Chinner Reviewed-by: Eric Sandeen Signed-off-by: Dave Chinner --- tests/xfs/045 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/xfs/045 b/tests/xfs/045 index 7d8a4a1b..2733f5c1 100755 --- a/tests/xfs/045 +++ b/tests/xfs/045 @@ -49,8 +49,11 @@ _require_scratch_nocheck echo "*** get uuid" uuid=`_get_existing_uuid` + +# We can only change the UUID on a v4 filesystem. Revist this when/if UUIDs +# canbe changed on v5 filesystems. echo "*** mkfs" -if ! _scratch_mkfs_xfs >$tmp.out 2>&1 +if ! _scratch_mkfs_xfs -m crc=0 >$tmp.out 2>&1 then cat $tmp.out echo "!!! failed to mkfs on $SCRATCH_DEV" -- 2.39.5