From: Tim Shimmin Date: Fri, 30 Jul 2004 05:26:25 +0000 (+0000) Subject: get dump qa going on irix X-Git-Tag: v1.1.0~807 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e30b7c2fac3e7ce0cd18de15e6d2300fc641f1c8;p=users%2Fhch%2Fxfstests-dev.git get dump qa going on irix Convert hwgraph char device name to block device for filtering. This is for IRIX. --- diff --git a/common.dump b/common.dump index 4802fd3a1..d41ec60ab 100644 --- a/common.dump +++ b/common.dump @@ -762,6 +762,25 @@ _ls_filter() | sed -e 's/total [0-9][0-9]*/total TOTAL/' } +# +# Filtering of Irix character hwgraph device names +# e.g. +# chardev: /hw/node/xtalk/15/pci/0/scsi_ctlr/0/target/1/lun/0/disk/partition/4/char +# blkdev: /dev/dsk/dks0d1s4 +# +_filter_devchar() +{ + $AWK_PROG ' + /\/hw\/node/ { + sub(/\/hw.*scsi_ctlr\//,"/dev/dsk/dks") # blah blah /dev/dsk/dks0/target/1/.... + sub(/\/target\//,"d") # blah blah /dev/dsk/dks0d1/lun/0/disk..... + sub(/\/lun.*partition\//,"s") # blah blah /dev/dsk/dks0d1s4/char + sub(/\/char/,"") # blah blah /dev/dsk/dks0d1s4 + } + { print } + ' +} + # # Filter out the non-deterministic dump msgs from @@ -769,6 +788,7 @@ _ls_filter() # _dump_filter_main() { + _filter_devchar |\ sed \ -e "s/`hostname`/HOSTNAME/" \ -e "s#$SCRATCH_DEV#SCRATCH_DEV#" \ @@ -1361,5 +1381,6 @@ _check_quota_file() _check_quota 'xfsdump_quotas' 'xfsdump_quotas_group' } + # make sure this script returns success /bin/true