add file required by dmapi qa
[xfstests-dev.git] / 101
1 #! /bin/sh
2 # FS QA Test No. 101. Modified from UDFQA test 029. 
3 #
4 # This tests mkfs_udf with -s [SIZE] option. 
5 #
6 #-----------------------------------------------------------------------
7 #  Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=ajones@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 FS_SIZE=2048
20 trap "_cleanup; exit \$status" 0 1 2 3 15
21
22 _cleanup()
23 {
24     rm -f $tmp.*
25 }
26
27 # get standard environment, filters and checks
28 . ./common.rc
29 . ./common.filter
30
31 # real QA test starts here
32 _supported_fs udf 
33 _supported_os IRIX
34
35 MKFS_OPTIONS="-s $FS_SIZE"
36
37 _require_scratch
38 _setup_udf_scratchdir
39 umount $SCRATCH_MNT
40
41 # Inspect the space bitmap
42 echo bitmap | udf_db -c - $SCRATCH_DEV
43
44 # Run udf_test
45 _check_udf_filesystem $SCRATCH_DEV $FS_SIZE
46
47 # success, all done
48 status=0
49 exit