67e0bdc8b77f5a9b746c8cba55637fb70f9bb8ee
[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 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; either version 2 of the License, or
11 #  (at your option) any later version.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18 #  You should have received a copy of the GNU General Public License
19 #  along with this program; if not, write to the Free Software
20 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
21 #  USA
22 #
23 #  Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane,
24 #  Mountain View, CA 94043, USA, or: http://www.sgi.com
25 #-----------------------------------------------------------------------
26 #
27 # creator
28 owner=ajones@sgi.com
29
30 seq=`basename $0`
31 echo "QA output created by $seq"
32
33 here=`pwd`
34 tmp=/tmp/$$
35 status=1        # failure is the default!
36 FS_SIZE=2048
37 trap "_cleanup; exit \$status" 0 1 2 3 15
38
39 _cleanup()
40 {
41     rm -f $tmp.*
42 }
43
44 # get standard environment, filters and checks
45 . ./common.rc
46 . ./common.filter
47
48 # real QA test starts here
49 _supported_fs udf 
50 _supported_os IRIX
51
52 MKFS_OPTIONS="-s $FS_SIZE"
53
54 _require_scratch
55 _setup_udf_scratchdir
56 umount $SCRATCH_MNT
57
58 # Inspect the space bitmap
59 echo bitmap | udf_db -c - $SCRATCH_DEV
60
61 # Run udf_test
62 _check_udf_filesystem $SCRATCH_DEV $FS_SIZE
63
64 # success, all done
65 status=0
66 exit