Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 2015 08:59:43 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r278144 - user/pho/stress2/misc
Message-ID:  <201502030859.t138xhZd023516@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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