4 # test multilevel dump and restores with hardlinks
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # get standard environment, filters and checks
30 # Print size ($5) and fname ($9).
31 # The size is significant since we add to the file as part
32 # of a file change for the incremental.
34 # Filter out the housekeeping files of xfsrestore
36 $AWK_PROG 'NF == 9 { print $5, $9 }' |\
37 egrep -v 'dumpdir|housekeeping|dirattr|dirextattr|namreg|state|tree'
40 # real QA test starts here
42 _supported_os IRIX Linux
44 _create_dumpdir_hardlinks 9
46 echo "Do the incremental dumps"
48 while [ $i -le 9 ]; do
54 echo "********* level $i ***********" >>$seq.full
56 find $SCRATCH_MNT -exec $here/src/lstat64 {} \; | sed 's/(00.*)//' >$tmp.dates.$i
59 diff -c $tmp.dates.$level_1 $tmp.dates.$i >>$seq.full
61 cat $tmp.dates.$i >>$seq.full
64 dump_file=$tmp.df.level$i
69 echo "Listing of what files we start with:"
70 ls -l $dump_dir | _ls_size_filter
72 echo "Look at what files are contained in the inc. dump"
74 while [ $i -le 9 ]; do
76 echo "restoring from df.level$i"
77 dump_file=$tmp.df.level$i
82 echo "Do the cumulative restores"
84 while [ $i -le 9 ]; do
85 dump_file=$tmp.df.level$i
87 echo "restoring from df.level$i"
88 _do_restore_file_cum -l $i
89 echo "ls -l restore_dir"
90 ls -lR $restore_dir | _ls_size_filter | _check_quota_file