change scratch fs to xfs_scratch
[xfstests-dev.git] / 095
1 #! /bin/sh
2 # FS QA Test No. 095
3 #
4 # test out xfs_chver on IRIX
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=tes@sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1        # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
20
21 _cleanup()
22 {
23     cd /
24     rm -f $tmp.*
25 }
26
27 # get standard environment, filters and checks
28 . ./common.rc
29 . ./common.filter
30 . ./common.log
31
32 # real QA test starts here
33
34 # Modify as appropriate.
35 _supported_fs xfs
36 _supported_os IRIX
37 _require_scratch
38 _require_v2log
39
40 export MOUNT_OPTIONS="-o logbsize=64k"
41
42 # try and mount a v1 log with a v2 LRsize
43 # expect failure
44 _mkfs_log "-l version=1"
45 _create_log
46
47 # now make the fs a v2 fs and try to mount again
48 # it should succeed this time
49 xfs_chver -l 2 $SCRATCH_DEV | \
50 sed -e "s#$SCRATCH_DEV#SCRATCH_DEV#g" \
51     -e 's/[0-9][0-9]* AGs/N AGs/'
52 _create_log
53
54 # success, all done
55 status=0
56 exit