svn commit: r319648 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Wed Jun 7 07:41:45 UTC 2017
Author: pho
Date: Wed Jun 7 07:41:44 2017
New Revision: 319648
URL: https://svnweb.freebsd.org/changeset/base/319648
Log:
Added tmpfs(5) testing.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/kevent6.sh
Modified: user/pho/stress2/misc/kevent6.sh
==============================================================================
--- user/pho/stress2/misc/kevent6.sh Wed Jun 7 07:39:46 2017 (r319647)
+++ user/pho/stress2/misc/kevent6.sh Wed Jun 7 07:41:44 2017 (r319648)
@@ -49,7 +49,7 @@ cd $odir
mount | grep "on $mntpoint " | grep -q md$mdstart && umount -f $mntpoint
mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
-mdconfig -a -t swap -s 2g -u ${mdstart}
+mdconfig -a -t swap -s 2g -u $mdstart
bsdlabel -w md$mdstart auto
newfs $newfs_flags md${mdstart}$part > /dev/null
mount /dev/md${mdstart}$part $mntpoint
@@ -61,6 +61,13 @@ while mount | grep -q $mntpoint; do
umount $mntpoint || sleep 1
done
mdconfig -d -u $mdstart
+
+mount -o size=1g -t tmpfs tmpfs $mntpoint
+chmod 777 $mntpoint
+su $testuser -c "(cd $mntpoint; /tmp/kevent6)"
+while mount | grep -q $mntpoint; do
+ umount $mntpoint || sleep 1
+done
rm -f /tmp/kevent6
exit
More information about the svn-src-user
mailing list