svn commit: r278024 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Sun Feb 1 09:53:56 UTC 2015
Author: pho
Date: Sun Feb 1 09:53:55 2015
New Revision: 278024
URL: https://svnweb.freebsd.org/changeset/base/278024
Log:
Add new finding, fix copy/paste and fix wrong index number.
Sponsored by: EMC / Isilon storage division
Modified:
user/pho/stress2/misc/mmap11.sh
Modified: user/pho/stress2/misc/mmap11.sh
==============================================================================
--- user/pho/stress2/misc/mmap11.sh Sun Feb 1 09:50:33 2015 (r278023)
+++ user/pho/stress2/misc/mmap11.sh Sun Feb 1 09:53:55 2015 (r278024)
@@ -33,6 +33,8 @@
# http://people.freebsd.org/~pho/stress/log/mmap11.txt
# No problems seen after r271681.
+# http://people.freebsd.org/~pho/stress/log/kostik730.txt, Fixed in r273784
+
[ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
here=`pwd`
@@ -127,8 +129,7 @@ tmmap(void *arg __unused)
len = 1LL * 1024 * 1024 * 1024;
for (i = 0; i < 100; i++) {
- if ((fd = open("/dev/zero", O_CREAT | O_TRUNC | O_RDWR,
- 0622)) == -1)
+ if ((fd = open("/dev/zero", O_RDWR)) == -1)
err(1,"open()");
if ((p = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE,
@@ -255,7 +256,7 @@ test(void)
errc(1, rc, "tmprotect()");
if ((rc = pthread_create(&tid[3], NULL, tmlockall, NULL)) != 0)
errc(1, rc, "tmlockall()");
- if ((rc = pthread_create(&tid[3], NULL, tmsync, NULL)) != 0)
+ if ((rc = pthread_create(&tid[4], NULL, tmsync, NULL)) != 0)
errc(1, rc, "tmlockall()");
for (i = 0; i < 100; i++) {
More information about the svn-src-user
mailing list