Date: Sun, 7 Apr 2013 10:55:39 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r249228 - user/pho/stress2/misc Message-ID: <201304071055.r37Atd1g014314@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org> +# Copyright (c) 2008-2013 Peter Holm <pho@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304071055.r37Atd1g014314>