Date: Wed, 30 Mar 2016 08:42:10 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r297415 - user/pho/stress2/misc Message-ID: <201603300842.u2U8gAXH072523@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Wed Mar 30 08:42:10 2016 New Revision: 297415 URL: https://svnweb.freebsd.org/changeset/base/297415 Log: Fixed typo and added small shell syntax changes. Sponsored by: EMC / Isilon Storage Division Modified: user/pho/stress2/misc/truncate3.sh user/pho/stress2/misc/truncate4.sh Modified: user/pho/stress2/misc/truncate3.sh ============================================================================== --- user/pho/stress2/misc/truncate3.sh Wed Mar 30 08:32:38 2016 (r297414) +++ user/pho/stress2/misc/truncate3.sh Wed Mar 30 08:42:10 2016 (r297415) @@ -28,7 +28,7 @@ # $FreeBSD: projects/stress2/misc/rename.sh 191485 2009-04-25 10:19:36Z pho $ # -# Variation of truncate2.sh whih FS check added. +# Variation of truncate2.sh with FS check added. [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 @@ -40,8 +40,8 @@ mdconfig -l | grep -q $mdstart && mdcon mdconfig -a -t swap -s 400m -u $mdstart bsdlabel -w md${mdstart} auto -newfs $newfs_flags md${mdstart}${part} > /dev/null -mount /dev/md${mdstart}${part} $mntpoint +newfs $newfs_flags md${mdstart}$part > /dev/null +mount /dev/md${mdstart}$part $mntpoint export RUNDIR=$mntpoint/stressX here=`pwd` @@ -64,8 +64,8 @@ while mount | grep -q $mntpoint; do umount $mntpoint done -if fsck -n -t ufs /dev/md${mdstart}${part} | egrep -q "BAD|WRONG"; then - fsck -n -t ufs /dev/md${mdstart}${part} +if fsck -n -t ufs /dev/md${mdstart}$part | egrep -q "BAD|WRONG"; then + fsck -n -t ufs /dev/md${mdstart}$part fi mdconfig -d -u $mdstart Modified: user/pho/stress2/misc/truncate4.sh ============================================================================== --- user/pho/stress2/misc/truncate4.sh Wed Mar 30 08:32:38 2016 (r297414) +++ user/pho/stress2/misc/truncate4.sh Wed Mar 30 08:42:10 2016 (r297415) @@ -43,7 +43,6 @@ for size in $((4 * 1024 * 1024 * 1024 - newfs $newfs_flags md${mdstart}$part > /dev/null mount /dev/md${mdstart}$part $mntpoint - echo "Truncate file size: $size" truncate -s $size $mntpoint/f1 && rm $mntpoint/f1 while mount | grep "$mntpoint " | grep -q /dev/md; do
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603300842.u2U8gAXH072523>