6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
19 status=1 # failure is the default!
20 # get standard environment, filters and checks
27 umount $SCRATCH_MNT 2>/dev/null
30 trap "_cleanup; exit \$status" 0 1 2 3 15
35 echo "*** $* ***" >>$seqfull
45 s/Device: *[0-9][0-9]*,[0-9][0-9]*/Device: <DEVICE>/;
46 s/Inode: *[0-9][0-9]*/Inode: <INODE>/;
47 s/Size: *[0-9][0-9]* *Filetype: Dir/Size: <DSIZE> Filetype: Dir/;
51 # real QA test starts here
53 _supported_os IRIX Linux
61 $here/src/devzero -b 2048 -n 2 -c -v 44 $tempfile.2
70 file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_0 ---755 3 1 $tempfile
71 file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_1 ---755 3 1 $tempfile
72 file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_2 ---755 3 1 $tempfile
73 file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_3 ---755 3 1 $tempfile
74 file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_4 ---755 3 1 $tempfile
77 setuid -u-666 0 0 $tempfile
78 setgid --g666 0 0 $tempfile
79 setugid -ug666 0 0 $tempfile
80 block_device b--012 3 1 161 162
81 char_device c--345 3 1 177 178
83 symlink l--123 0 0 bigfile
84 : a file we actually read
85 bigfile ---666 3 0 $tempfile.2
92 _fail "failed to create test protofile"
97 echo "*** create FS version $1"
98 VERSION="-n version=$1"
101 umount $SCRATCH_DEV >/dev/null 2>&1
104 _scratch_mkfs_xfs $VERSION -p $protofile >>$seqfull 2>&1 \
105 || _fail "mkfs failed"
112 _scratch_mount >>$seqfull 2>&1 \
113 || _fail "mount failed"
116 (cd $SCRATCH_MNT ; find . | LC_COLLATE=POSIX sort \
117 | xargs $here/src/lstat64 | _filter_stat)
118 diff -q $SCRATCH_MNT/bigfile $tempfile.2 \
119 || _fail "bigfile corrupted"
121 echo "*** unmount FS"
123 umount $SCRATCH_DEV >>$seqfull 2>&1 \
124 || _fail "umount failed"