svn commit: r328117 - user/pho/stress2/testcases/link
Peter Holm
pho at FreeBSD.org
Thu Jan 18 11:05:53 UTC 2018
Author: pho
Date: Thu Jan 18 11:05:51 2018
New Revision: 328117
URL: https://svnweb.freebsd.org/changeset/base/328117
Log:
Remove redundant test and added style fixes while here.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/testcases/link/link.c
Modified: user/pho/stress2/testcases/link/link.c
==============================================================================
--- user/pho/stress2/testcases/link/link.c Thu Jan 18 11:01:41 2018 (r328116)
+++ user/pho/stress2/testcases/link/link.c Thu Jan 18 11:05:51 2018 (r328117)
@@ -28,30 +28,30 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <string.h>
-#include <sys/stat.h>
#include <sys/param.h>
-#include <sys/syslimits.h>
+#include <sys/stat.h>
+
#include <err.h>
#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "stress.h"
-static char path[128];
static unsigned long size;
+static char path[128];
int
setup(int nb)
{
- int pct;
- int64_t in;
int64_t bl;
- int64_t reserve_in;
+ int64_t in;
int64_t reserve_bl;
+ int64_t reserve_in;
+ int pct;
umask(0);
path[0] = 0;
@@ -66,8 +66,6 @@ setup(int nb)
if (size > 32000 && op->hog == 0)
size = 32000; /* arbitrary limit number of files pr. dir */
- if (size > LINK_MAX)
- size = LINK_MAX;
/* Resource requirements: */
reserve_in = 2 * op->incarnations + 7;
@@ -109,8 +107,8 @@ cleanup(void)
int
test(void)
{
- int fd, i, j;
pid_t pid;
+ int fd, i, j;
char file[128];
char lfile[128];
More information about the svn-src-user
mailing list