svn commit: r278144 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Tue Feb 3 08:59:43 UTC 2015


Author: pho
Date: Tue Feb  3 08:59:42 2015
New Revision: 278144
URL: https://svnweb.freebsd.org/changeset/base/278144

Log:
  Trailing whitespace fix and added a fail message to namecache.sh
  
  Sponsored by:	 EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/msync.sh
  user/pho/stress2/misc/namecache.sh

Modified: user/pho/stress2/misc/msync.sh
==============================================================================
--- user/pho/stress2/misc/msync.sh	Tue Feb  3 08:06:59 2015	(r278143)
+++ user/pho/stress2/misc/msync.sh	Tue Feb  3 08:59:42 2015	(r278144)
@@ -186,11 +186,11 @@ main(void)
 			arc4random_stir();
 			for (j = 0; j < N; j++)
 				r[j] = arc4random();
-			for (j = 0; j < 50; j++) 
+			for (j = 0; j < 50; j++)
 				if (pthread_create(&cp[j], NULL, calls, NULL) != 0)
 					perror("pthread_create");
 
-			for (j = 0; j < 50; j++) 
+			for (j = 0; j < 50; j++)
 				pthread_join(cp[j], NULL);
 			_exit(0);
 		}

Modified: user/pho/stress2/misc/namecache.sh
==============================================================================
--- user/pho/stress2/misc/namecache.sh	Tue Feb  3 08:06:59 2015	(r278143)
+++ user/pho/stress2/misc/namecache.sh	Tue Feb  3 08:59:42 2015	(r278144)
@@ -53,7 +53,7 @@
 #         ATIME=Apr  2 11:24:33 2009 [0 nsec]
 # OWNER=pho GRP=wheel LINKCNT=1 FLAGS=0 BLKCNT=0 GEN=1deaab3a
 # fsdb (inum: 198)> quit
-# $ 
+# $
 
 # Consistency is restored by a umount + mount of the FS
 
@@ -87,6 +87,7 @@ for i in `jot 30`; do
 done
 
 if ls -l ${dir}/file.0* 2>&1 | egrep "file.0[0-9]" | grep -q "No such file"; then
+	echo FAIL
 	echo "ls -l ${dir}/file.0*"
 	ls -l ${dir}/file.0*
 fi
@@ -144,7 +145,7 @@ pm(void)
 			if (stat(dp->d_name, &statb) == -1) {
 				warn("stat(%s)", dp->d_name);
 				printf("name: %-10s, inode %7d, type %2d, namelen %d, d_reclen %d\n",
-					dp->d_name, dp->d_fileno, dp->d_type, dp->d_namlen, 
+					dp->d_name, dp->d_fileno, dp->d_type, dp->d_namlen,
 					dp->d_reclen);
 				fflush(stdout);
 			} else {
@@ -207,7 +208,7 @@ main(int argc, char **argv)
 			reader();
 			if (waitpid(pid, &status, 0) == -1)
 				warn("waitpid(%d)", pid);
-		} else 
+		} else
 			err(1, "fork(), %s:%d",  __FILE__, __LINE__);
 
 		if (unlink(path) == -1)


More information about the svn-src-user mailing list