4 # test mount of two FSes with identical UUID and mount with unknown option
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # get standard environment, filters and checks
27 xfs_db -r $TEST_DEV -c "uuid" | $AWK_PROG '/^UUID/ { print $3 }'
30 # real QA test starts here
37 uuid=`_get_existing_uuid`
39 if ! _scratch_mkfs_xfs >$tmp.out 2>&1
42 echo "!!! failed to mkfs on $SCRATCH_DEV"
46 echo "*** mount fs with bad mount option (expect failure)"
47 if _scratch_mount -o foobar >$tmp.out 2>&1
50 echo "!!! mount succeeded (expecting failure)"
54 echo "*** duplicate uuid"
55 xfs_db -x -c "uuid $uuid" `_scratch_xfs_db_options` >/dev/null
57 echo "*** mount fs with duplicate uuid (expect failure)"
58 if _scratch_mount >$tmp.out 2>&1
61 echo "!!! mount succeeded (expecting failure)"