Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2014 10:37:38 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r264756 - user/pho/stress2/misc
Message-ID:  <201404221037.s3MAbc1w069260@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Tue Apr 22 10:37:38 2014
New Revision: 264756
URL: http://svnweb.freebsd.org/changeset/base/264756

Log:
  Old test assumed /tmp was a mount point.
  
  Sponsored by:	EMC / Isilon storage division

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

Modified: user/pho/stress2/misc/mount.sh
==============================================================================
--- user/pho/stress2/misc/mount.sh	Tue Apr 22 10:36:36 2014	(r264755)
+++ user/pho/stress2/misc/mount.sh	Tue Apr 22 10:37:38 2014	(r264756)
@@ -61,16 +61,24 @@
 
 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
 
-mount | grep /tmp && umount -f /tmp
+. ../default.cfg
+
+mount | grep -q "$mntpoint" && umount $mntpoint
+mdconfig -l | grep -q $mdstart &&  mdconfig -d -u $mdstart
+
+mdconfig -a -t swap -s 1g -u $mdstart
+bsdlabel -w md$mdstart auto
+
+newfs $newfs_flags md${mdstart}$part > /dev/null
 
 # The test:
 
-mount -r /tmp
-mount -r /tmp
-umount /tmp
+mount -r /dev/md${mdstart}$part $mntpoint
+mount -r /dev/md${mdstart}$part $mntpoint
+umount $mntpoint
 
-ls -lR /tmp > /dev/null	# panic
+ls -lR $mntpoint > /dev/null	# panic
 
 # End of test
-
-mount /tmp
+mount | grep -q "$mntpoint" && umount $mntpoint
+mdconfig -l | grep -q $mdstart &&  mdconfig -d -u $mdstart



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404221037.s3MAbc1w069260>