From 62f10f75b7092bde8fc5026123b6e542e3c19386 Mon Sep 17 00:00:00 2001 From: ptools Date: Wed, 21 Jan 2004 00:43:00 +0000 Subject: [PATCH] Fix up failure of log qa test 018 due to running with Electric Fence and somehow me not checking in my 018.noquota.op change in ages ago and left in my workarea. This change was done at the time of a change to common.log but somehow didn't get checked in. --- 018.noquota.op | 1 - common.log | 16 +++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/018.noquota.op b/018.noquota.op index 34b9c793..b1fdb0e4 100644 --- a/018.noquota.op +++ b/018.noquota.op @@ -5507,7 +5507,6 @@ icount: ifree: fdblks: frext: Oper (1738): tid: len: clientid: TRANS flags: COMMIT Oper (0): tid: len: clientid: LOG flags: UNMOUNT Unmount filesystem -xfs_logprint: skipped cleared blocks in range: - xfs_logprint: skipped zeroed blocks in range: - xfs_logprint: physical end of log xfs_logprint: logical end of log diff --git a/common.log b/common.log index 7a815607..ca6d27d0 100644 --- a/common.log +++ b/common.log @@ -128,6 +128,7 @@ BEGIN { _filter_logprint() { + _fix_malloc |\ sed ' s/data device: 0x[0-9a-f][0-9a-f]*/data device: /; s/log device: 0x[0-9a-f][0-9a-f]*/log device: /; @@ -166,8 +167,7 @@ _filter_logprint() /^[ ]*$/d; s/ */ /g; s/ $//; - ' \ - | _fix_malloc + ' } _check_log() @@ -316,6 +316,11 @@ _clear_opts() # - remove the log options in mount # - remove the quota options in mount # leave any other options given + # fix up removals when remaining -o or comma: + # "-o blah," -> "-o blah" + # "-o blah, -x woof" -> "-o blah -x woof" + # "-x woof -o " -> "-x woof" + # "-x woof -o -y wow" -> "-x woof -y wow" MKFS_OPTIONS=`echo $MKFS_OPTIONS | sed -e 's/-l[ ]*[^ $]*//g'` MOUNT_OPTIONS=`echo $MOUNT_OPTIONS |\ sed -e 's/logbsize=[^ ,]*,*//g' \ @@ -324,13 +329,18 @@ _clear_opts() -e 's/quota,*//g' \ -e 's/uqnoenforce,*//g' \ -e 's/gqnoenforce,*//g' \ - -e 's/-o *$//g' \ + -e 's/\(-o[^-,]*\), *$/\1/g' \ + -e 's/\(-o[^-,]*\), *-/\1 -/g' \ + -e 's/-o *$//g' \ -e 's/-o *-/-/g' \ ` # export opts export MKFS_OPTIONS export MOUNT_OPTIONS + echo "MKFS_OPTIONS = $MKFS_OPTIONS" >>$seq.full + echo "MOUNT_OPTIONS = $MOUNT_OPTIONS" >>$seq.full + } # -- 2.30.2