2 # FS QA Test No. 093. Modified from UDF QA test 030.
4 # Test whether a tarred directory structure can be untarred onto
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
9 #-----------------------------------------------------------------------
15 echo "QA output created by $seq"
19 status=1 # failure is the default!
20 trap "_cleanup; exit \$status" 0 1 2 3 15
22 # get standard environment, filters and checks
28 rm -f $tmp.* $testfile
31 # real QA test starts here
32 _supported_fs xfs udf nfs
33 _supported_os IRIX Linux
35 # Use _populate_fs() in common.rc to create a directory structure.
37 [ "$FSTYP" == "xfs" ] && TEMP_DIR=$TEST_DIR
42 POPULATED_DIR=$TEMP_DIR/populate_root
47 # Clean up if file exist from prevous run
49 rm -f $TEMP_DIR/$TAR_FILE
51 # Create the new directory structure
52 _populate_fs -n $NDIRS -f $NFILES -d $DEPTH -r $POPULATED_DIR -s $SIZE >>$here/$seq.full 2>&1
54 # Then tar up the directory structure
55 tar -cvf $TEMP_DIR/$TAR_FILE $POPULATED_DIR >>$here/$seq.full 2>&1
63 tar -xRvf $TEMP_DIR/$TAR_FILE >>$here/$seq.full 2>&1
67 # use diff -qr to compare
68 ls -R -l ${testdir}${POPULATED_DIR} >>$here/$seq.full 2>&1
69 diff -qr $POPULATED_DIR ${testdir}${POPULATED_DIR}