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 <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Dave Chinner
2015-05-14 12:19:41 +10:00
committed by Dave Chinner
parent e9cf80ec7f
commit da8f501cb3
+4 -1
View File
@@ -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"