svn commit: r319105 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Mon May 29 08:43:16 UTC 2017
Author: pho
Date: Mon May 29 08:43:15 2017
New Revision: 319105
URL: https://svnweb.freebsd.org/changeset/base/319105
Log:
Only enable SUJ if the default FS is SU.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/mkfifo.sh
Modified: user/pho/stress2/misc/mkfifo.sh
==============================================================================
--- user/pho/stress2/misc/mkfifo.sh Mon May 29 08:41:25 2017 (r319104)
+++ user/pho/stress2/misc/mkfifo.sh Mon May 29 08:43:15 2017 (r319105)
@@ -45,7 +45,8 @@ mdconfig -l | grep -q md$mdstart && mdc
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
bsdlabel -w md$mdstart auto
-newfs -j md${mdstart}$part > /dev/null
+[ "$newfs_flags" = "-U" ] && opt="-j"
+newfs $opt md${mdstart}$part > /dev/null
mount /dev/md${mdstart}$part $mntpoint
chmod 777 $mntpoint
@@ -82,3 +83,4 @@ while mount | grep $mntpoint | grep -q /
umount $mntpoint || sleep 1
done
mdconfig -d -u $mdstart
+exit 0
More information about the svn-src-user
mailing list