svn commit: r249228 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Sun Apr 7 10:55:39 UTC 2013


Author: pho
Date: Sun Apr  7 10:55:39 2013
New Revision: 249228
URL: http://svnweb.freebsd.org/changeset/base/249228

Log:
  Do not run the test as root. If umount fails, use "umount -f".

Modified:
  user/pho/stress2/misc/nfs.sh

Modified: user/pho/stress2/misc/nfs.sh
==============================================================================
--- user/pho/stress2/misc/nfs.sh	Sun Apr  7 10:52:28 2013	(r249227)
+++ user/pho/stress2/misc/nfs.sh	Sun Apr  7 10:55:39 2013	(r249228)
@@ -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
@@ -40,8 +40,9 @@ mount -t nfs -o tcp -o retrycnt=3 -o int
 export RUNDIR=$mntpoint/stressX
 export runRUNTIME=10m            # Run tests for 10 minutes
 
-(cd ..; ./run.sh disk.cfg) 
+su $testuser -c "(cd ..; ./run.sh disk.cfg)"
 
-while mount | grep "$mntpoint" | grep -q nfs; do
-	umount $mntpoint
+umount $mntpoint
+while mount | grep "$mntpoint " | grep -q nfs; do
+	umount -f $mntpoint
 done


More information about the svn-src-user mailing list