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 "rm -rf $tmp.*; exit \$status" 0 1 2 3 15
25 # real QA test starts here
29 _require_tape $TAPE_DEV
31 # note: fsstress uses an endian dependent random number generator, running this
32 # will produce different output for big/little endian machines.
33 _create_dumpdir_stress
36 # filter out the file count, it changes as fsstress adds new operations
37 _do_restore | sed -e "/entries processed$/s/[0-9][0-9]*/NUM/g"