svn commit: r249296 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Tue Apr 9 08:25:32 UTC 2013
Author: pho
Date: Tue Apr 9 08:25:31 2013
New Revision: 249296
URL: http://svnweb.freebsd.org/changeset/base/249296
Log:
Silence newfs and do not run as root.
Modified:
user/pho/stress2/misc/nfs6.sh
Modified: user/pho/stress2/misc/nfs6.sh
==============================================================================
--- user/pho/stress2/misc/nfs6.sh Tue Apr 9 08:24:34 2013 (r249295)
+++ user/pho/stress2/misc/nfs6.sh Tue Apr 9 08:25:31 2013 (r249296)
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright (c) 2008-2011 Peter Holm <pho at FreeBSD.org>
+# Copyright (c) 2008-2013 Peter Holm <pho at FreeBSD.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ mdconfig -l | grep -q ${mdstart} && md
mdconfig -a -t vnode -f $D -u $mdstart
bsdlabel -w md${mdstart} auto
-newfs -U md${mdstart}${part}
+newfs -U md${mdstart}${part} > /dev/null
mount /dev/md${mdstart}${part} $mntpoint
mkdir ${mntpoint}/stressX
@@ -57,7 +57,7 @@ mount -t nfs -o tcp -o retrycnt=3 -o int
export RUNDIR=${mntpoint}2/stressX
export runRUNTIME=4m
-(cd ..; ./run.sh disk.cfg) &
+su $testuser -c "(cd ..; ./run.sh disk.cfg > /dev/null 2>&1)" &
sleep 60
for i in `jot 10`; do
More information about the svn-src-user
mailing list