svn commit: r258872 - user/pho/stress2/testcases/rename

John-Mark Gurney jmg at FreeBSD.org
Tue Dec 3 18:12:40 UTC 2013


Author: jmg
Date: Tue Dec  3 18:12:39 2013
New Revision: 258872
URL: http://svnweb.freebsd.org/changeset/base/258872

Log:
  remove the feature of using a subdir..  This is will help hammer the
  parent directory w/ multiple renames, instead of just serially renaming
  files in the same dir...
  
  Sponsored by:	Imaginary Forces
  Reviewed by:	pho

Modified:
  user/pho/stress2/testcases/rename/rename.c

Modified: user/pho/stress2/testcases/rename/rename.c
==============================================================================
--- user/pho/stress2/testcases/rename/rename.c	Tue Dec  3 18:04:14 2013	(r258871)
+++ user/pho/stress2/testcases/rename/rename.c	Tue Dec  3 18:12:39 2013	(r258872)
@@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$");
 
 #include "stress.h"
 
-static char path[128];
 static unsigned long size;
 
 int
@@ -82,22 +81,12 @@ setup(int nb)
 	if (size == 0)
 		exit(0);
 
-	sprintf(path,"%s.%05d", getprogname(), getpid());
-	if (mkdir(path, 0770) < 0)
-		err(1, "mkdir(%s), %s:%d", path, __FILE__, __LINE__);
-	if (chdir(path) == -1)
-		err(1, "chdir(%s), %s:%d", path, __FILE__, __LINE__);
-
 	return (0);
 }
 
 void
 cleanup(void)
 {
-	(void)system("rm -f p*");
-	(void)chdir("..");
-	if (rmdir(path) == -1)
-		warn("rmdir(%s), %s:%d", path, __FILE__, __LINE__);
 }
 
 static void


More information about the svn-src-user mailing list