Date: Tue, 3 Dec 2013 18:12:40 +0000 (UTC) From: John-Mark Gurney <jmg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r258872 - user/pho/stress2/testcases/rename Message-ID: <201312031812.rB3ICegR029673@svn.freebsd.org>
index | next in thread | raw e-mail
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 voidhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312031812.rB3ICegR029673>
