2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
7 # Test out a level 0 dump/restore to a tape of a subdir
8 # i.e. it is testing out drive_scsitape.c
10 # Use fsstress to create a directory structure with a mix of files
14 seqres=$RESULT_DIR/$seq
15 echo "QA output created by $seq"
19 status=0 # success is the default!
20 trap "_cleanup; exit \$status" 0 1 2 3 15
32 # real QA test starts here
35 _require_tape $TAPE_DEV
37 # note: fsstress uses an endian dependent random number generator, running this
38 # will produce different output for big/little endian machines.
39 _create_dumpdir_stress
42 # filter out the file count, it changes as fsstress adds new operations
43 _do_restore | sed -e "/entries processed$/s/[0-9][0-9]*/NUM/g"