svn commit: r297415 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Wed Mar 30 08:42:11 UTC 2016
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
More information about the svn-src-user
mailing list