btrfs/012: check free size of scratch device before copying files
[xfstests-dev.git] / tests / udf / 102
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 102
6 #
7 # This tests mkfs_udf/mkudffs and the device detection code
8 # Modified from UDFQA test 031.
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
18
19 _cleanup()
20 {
21     rm -f $tmp.*
22     cd /
23 }
24 # get standard environment, filters and checks
25 . ./common/rc
26 . ./common/filter
27
28 # real QA test starts here
29 _supported_fs udf 
30
31 _require_scratch
32 _setup_udf_scratchdir
33
34 # Checks the udf filesystem
35 _check_udf_filesystem $SCRATCH_DEV
36
37 echo "Finished"
38
39 # success, all done
40 status=0
41 exit