XFSQA test 144 fails again on tot linux_xfs
[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 MKFS_OPTIONS="-l version=1"
41 export MOUNT_OPTIONS="-o logbsize=64k"
42
43 # try and mount a v1 log with a v2 LRsize
44 # expect failure
45 _mkfs_log
46 _create_log
47
48 # now make the fs a v2 fs and try to mount again
49 # it should succeed this time
50 xfs_chver -l 2 $SCRATCH_DEV | \
51 sed -e "s#$SCRATCH_DEV#SCRATCH_DEV#g" \
52     -e 's/[0-9][0-9]* AGs/N AGs/'
53 _create_log
54
55 # success, all done
56 status=0
57 exit