From: Dave Chinner Date: Thu, 14 May 2015 02:19:41 +0000 (+1000) Subject: xfs/045: can't change UUID on v5 filesystems. X-Git-Tag: v2022.05.01~2886 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=da8f501cb3ccf2fef04837b74fa0f525e50f6d7e;p=xfstests-dev.git 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 --- 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"