X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=047.out;h=168ada17361f32e495a041886eb8b3cdf21e467e;hp=ad62641ef5420742baa01d92a53a675b0bf5300a;hb=99082b787623d1027a046f05b46a8d66da43d98b;hpb=6631e39f44a09e859b6c51ce6406b9cf9150e35e diff --git a/047.out b/047.out index ad62641e..168ada17 100644 --- a/047.out +++ b/047.out @@ -1,345 +1,71 @@ -QA output created by 047 -Dumping to file... -xfsdump -f DUMP_FILE -M stress_tape_media -L session.0 SCRATCH_MNT -xfsdump: using file dump (drive_simple) strategy -xfsdump: level 0 dump of HOSTNAME:SCRATCH_MNT -xfsdump: dump date: DATE -xfsdump: session id: ID -xfsdump: session label: "session.0" -xfsdump: ino map phase 1: constructing initial dump list -xfsdump: ino map phase 2: skipping (no pruning necessary) -xfsdump: ino map phase 3: skipping (only one dump stream) -xfsdump: ino map construction complete -xfsdump: estimated dump size: NUM bytes -xfsdump: /var/xfsdump/inventory created -xfsdump: creating dump session media file 0 (media 0, file 0) -xfsdump: dumping ino map -xfsdump: dumping directories -xfsdump: dumping non-directory files -xfsdump: ending media file -xfsdump: media file size NUM bytes -xfsdump: dump size (non-dir files) : NUM bytes -xfsdump: dump complete: SECS seconds elapsed -xfsdump: Dump Status: SUCCESS -Dumping to file... -xfsdump -f DUMP_FILE -M stress_tape_media -L session.1 SCRATCH_MNT -xfsdump: using file dump (drive_simple) strategy -xfsdump: level 0 dump of HOSTNAME:SCRATCH_MNT -xfsdump: dump date: DATE -xfsdump: session id: ID -xfsdump: session label: "session.1" -xfsdump: ino map phase 1: constructing initial dump list -xfsdump: ino map phase 2: skipping (no pruning necessary) -xfsdump: ino map phase 3: skipping (only one dump stream) -xfsdump: ino map construction complete -xfsdump: estimated dump size: NUM bytes -xfsdump: creating dump session media file 0 (media 0, file 0) -xfsdump: dumping ino map -xfsdump: dumping directories -xfsdump: dumping non-directory files -xfsdump: ending media file -xfsdump: media file size NUM bytes -xfsdump: dump size (non-dir files) : NUM bytes -xfsdump: dump complete: SECS seconds elapsed -xfsdump: Dump Status: SUCCESS -Dumping to file... -xfsdump -f DUMP_FILE -M stress_tape_media -L session.2 SCRATCH_MNT -xfsdump: using file dump (drive_simple) strategy -xfsdump: level 0 dump of HOSTNAME:SCRATCH_MNT -xfsdump: dump date: DATE -xfsdump: session id: ID -xfsdump: session label: "session.2" -xfsdump: ino map phase 1: constructing initial dump list -xfsdump: ino map phase 2: skipping (no pruning necessary) -xfsdump: ino map phase 3: skipping (only one dump stream) -xfsdump: ino map construction complete -xfsdump: estimated dump size: NUM bytes -xfsdump: creating dump session media file 0 (media 0, file 0) -xfsdump: dumping ino map -xfsdump: dumping directories -xfsdump: dumping non-directory files -xfsdump: ending media file -xfsdump: media file size NUM bytes -xfsdump: dump size (non-dir files) : NUM bytes -xfsdump: dump complete: SECS seconds elapsed -xfsdump: Dump Status: SUCCESS -Dumping to file... -xfsdump -f DUMP_FILE -M stress_tape_media -L session.3 SCRATCH_MNT -xfsdump: using file dump (drive_simple) strategy -xfsdump: level 0 dump of HOSTNAME:SCRATCH_MNT -xfsdump: dump date: DATE -xfsdump: session id: ID -xfsdump: session label: "session.3" -xfsdump: ino map phase 1: constructing initial dump list -xfsdump: ino map phase 2: skipping (no pruning necessary) -xfsdump: ino map phase 3: skipping (only one dump stream) -xfsdump: ino map construction complete -xfsdump: estimated dump size: NUM bytes -xfsdump: creating dump session media file 0 (media 0, file 0) -xfsdump: dumping ino map -xfsdump: dumping directories -xfsdump: dumping non-directory files -xfsdump: ending media file -xfsdump: media file size NUM bytes -xfsdump: dump size (non-dir files) : NUM bytes -xfsdump: dump complete: SECS seconds elapsed -xfsdump: Dump Status: SUCCESS -Dumping to file... -xfsdump -f DUMP_FILE -M stress_tape_media -L session.4 SCRATCH_MNT -xfsdump: using file dump (drive_simple) strategy -xfsdump: level 0 dump of HOSTNAME:SCRATCH_MNT -xfsdump: dump date: DATE -xfsdump: session id: ID -xfsdump: session label: "session.4" -xfsdump: ino map phase 1: constructing initial dump list -xfsdump: ino map phase 2: skipping (no pruning necessary) -xfsdump: ino map phase 3: skipping (only one dump stream) -xfsdump: ino map construction complete -xfsdump: estimated dump size: NUM bytes -xfsdump: creating dump session media file 0 (media 0, file 0) -xfsdump: dumping ino map -xfsdump: dumping directories -xfsdump: dumping non-directory files -xfsdump: ending media file -xfsdump: media file size NUM bytes -xfsdump: dump size (non-dir files) : NUM bytes -xfsdump: dump complete: SECS seconds elapsed -xfsdump: Dump Status: SUCCESS -file system 0: - fs ID: ID - session 0: - mount point: HOSTNAME:SCRATCH_MNT - device: HOSTNAME:SCRATCH_DEV - time: TIME - session label: "session.0" - session id: ID - level: 0 - resumed: NO - subtree: NO - streams: 1 - stream 0: - pathname: DUMP_FILE - start: ino INO offset 0 - end: ino INO offset 0 - interrupted: NO - media files: 1 - media file 0: - mfile index: 0 - mfile type: data - mfile size: NUM - mfile start: ino INO offset 0 - mfile end: ino INO offset 0 - media label: "stress_tape_media" - media ID: ID - session 1: - mount point: HOSTNAME:SCRATCH_MNT - device: HOSTNAME:SCRATCH_DEV - time: TIME - session label: "session.1" - session id: ID - level: 0 - resumed: NO - subtree: NO - streams: 1 - stream 0: - pathname: DUMP_FILE - start: ino INO offset 0 - end: ino INO offset 0 - interrupted: NO - media files: 1 - media file 0: - mfile index: 0 - mfile type: data - mfile size: NUM - mfile start: ino INO offset 0 - mfile end: ino INO offset 0 - media label: "stress_tape_media" - media ID: ID - session 2: - mount point: HOSTNAME:SCRATCH_MNT - device: HOSTNAME:SCRATCH_DEV - time: TIME - session label: "session.2" - session id: ID - level: 0 - resumed: NO - subtree: NO - streams: 1 - stream 0: - pathname: DUMP_FILE - start: ino INO offset 0 - end: ino INO offset 0 - interrupted: NO - media files: 1 - media file 0: - mfile index: 0 - mfile type: data - mfile size: NUM - mfile start: ino INO offset 0 - mfile end: ino INO offset 0 - media label: "stress_tape_media" - media ID: ID - session 3: - mount point: HOSTNAME:SCRATCH_MNT - device: HOSTNAME:SCRATCH_DEV - time: TIME - session label: "session.3" - session id: ID - level: 0 - resumed: NO - subtree: NO - streams: 1 - stream 0: - pathname: DUMP_FILE - start: ino INO offset 0 - end: ino INO offset 0 - interrupted: NO - media files: 1 - media file 0: - mfile index: 0 - mfile type: data - mfile size: NUM - mfile start: ino INO offset 0 - mfile end: ino INO offset 0 - media label: "stress_tape_media" - media ID: ID - session 4: - mount point: HOSTNAME:SCRATCH_MNT - device: HOSTNAME:SCRATCH_DEV - time: TIME - session label: "session.4" - session id: ID - level: 0 - resumed: NO - subtree: NO - streams: 1 - stream 0: - pathname: DUMP_FILE - start: ino INO offset 0 - end: ino INO offset 0 - interrupted: NO - media files: 1 - media file 0: - mfile index: 0 - mfile type: data - mfile size: NUM - mfile start: ino INO offset 0 - mfile end: ino INO offset 0 - media label: "stress_tape_media" - media ID: ID -xfsdump: Dump Status: SUCCESS -Processing file /var/xfsdump/inventory/UUIDstab - Found entry for HOSTNAME:SCRATCH_MNT - Match on hostname and path - processing index file - /var/xfsdump/inventory/UUID.InvIndex - Checking access for - /var/xfsdump/inventory/UUID.StObj - Mount point match - Session 0: HOSTNAME:SCRATCH_MNT -------------------------------------------------- -An entry matching the mount point/time is : -UUID : ID -MOUNT POINT : HOSTNAME:SCRATCH_MNT -DEV PATH : HOSTNAME:SCRATCH_DEV -TIME OF DUMP : TIME +#! /bin/sh +# FS QA Test No. 047 +# +# invutil with interactive responses +# +#----------------------------------------------------------------------- +# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=tes@sgi.com -Do you want to prune this entry: [y/n] +seq=`basename $0` +echo "QA output created by $seq" - Session 1: HOSTNAME:SCRATCH_MNT -------------------------------------------------- -An entry matching the mount point/time is : -UUID : ID -MOUNT POINT : HOSTNAME:SCRATCH_MNT -DEV PATH : HOSTNAME:SCRATCH_DEV -TIME OF DUMP : TIME +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 -Do you want to prune this entry: [y/n] +# get standard environment, filters and checks +. ./common.rc +. ./common.dump - Session 2: HOSTNAME:SCRATCH_MNT -------------------------------------------------- -An entry matching the mount point/time is : -UUID : ID -MOUNT POINT : HOSTNAME:SCRATCH_MNT -DEV PATH : HOSTNAME:SCRATCH_DEV -TIME OF DUMP : TIME +# real QA test starts here +_supported_fs xfs +_supported_os IRIX Linux -Do you want to prune this entry: [y/n] +# wipe test dir clean first +# so dump can be real quick +_wipe_fs - Session 3: HOSTNAME:SCRATCH_MNT - Session 4: HOSTNAME:SCRATCH_MNT -file system 0: - fs ID: ID - session 0: - mount point: HOSTNAME:SCRATCH_MNT - device: HOSTNAME:SCRATCH_DEV - time: TIME - session label: "session.0" - session id: ID - level: 0 - resumed: NO - subtree: NO - streams: 1 - stream 0: - pathname: DUMP_FILE - start: ino INO offset 0 - end: ino INO offset 0 - interrupted: NO - media files: 1 - media file 0: - mfile index: 0 - mfile type: data - mfile size: NUM - mfile start: ino INO offset 0 - mfile end: ino INO offset 0 - media label: "stress_tape_media" - media ID: ID - session 1: - mount point: HOSTNAME:SCRATCH_MNT - device: HOSTNAME:SCRATCH_DEV - time: TIME - session label: "session.3" - session id: ID - level: 0 - resumed: NO - subtree: NO - streams: 1 - stream 0: - pathname: DUMP_FILE - start: ino INO offset 0 - end: ino INO offset 0 - interrupted: NO - media files: 1 - media file 0: - mfile index: 0 - mfile type: data - mfile size: NUM - mfile start: ino INO offset 0 - mfile end: ino INO offset 0 - media label: "stress_tape_media" - media ID: ID - session 2: - mount point: HOSTNAME:SCRATCH_MNT - device: HOSTNAME:SCRATCH_DEV - time: TIME - session label: "session.4" - session id: ID - level: 0 - resumed: NO - subtree: NO - streams: 1 - stream 0: - pathname: DUMP_FILE - start: ino INO offset 0 - end: ino INO offset 0 - interrupted: NO - media files: 1 - media file 0: - mfile index: 0 - mfile type: data - mfile size: NUM - mfile start: ino INO offset 0 - mfile end: ino INO offset 0 - media label: "stress_tape_media" - media ID: ID -xfsdump: Dump Status: SUCCESS +# +# Create 5 dumps +# and on the 3rd dump note the date +# which we'll use to prune against using xfsinvutil +# +i=0 +while [ $i -lt 5 ]; do + _do_dump_file -L "session.$i" + if [ $i -eq 2 ]; then + sleep 1 + middate=`date '+%m/%d/%Y %T'` + fi + rm $dump_file + sleep 2 + i=`expr $i + 1` +done + +echo "middate = $middate" >>$seq.full + +# Only say No to 1st question to prune +cat >$tmp.input <