]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/045: can't change UUID on v5 filesystems.
authorDave Chinner <dchinner@redhat.com>
Thu, 14 May 2015 02:19:41 +0000 (12:19 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 14 May 2015 02:19:41 +0000 (12:19 +1000)
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 <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/045

index 7d8a4a1bb65b9daeb96a9edea484c06e965dad75..2733f5c1c22b543b3787ded111b794b2762d2b20 100755 (executable)
@@ -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"