From owner-svn-src-user@freebsd.org Thu Jan 18 11:05:53 2018 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BD86EC56AA for ; Thu, 18 Jan 2018 11:05:53 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EBB0232F0; Thu, 18 Jan 2018 11:05:52 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 475261DA3F; Thu, 18 Jan 2018 11:05:52 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0IB5qtY041634; Thu, 18 Jan 2018 11:05:52 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0IB5qGm041633; Thu, 18 Jan 2018 11:05:52 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201801181105.w0IB5qGm041633@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Thu, 18 Jan 2018 11:05:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r328117 - user/pho/stress2/testcases/link X-SVN-Group: user X-SVN-Commit-Author: pho X-SVN-Commit-Paths: user/pho/stress2/testcases/link X-SVN-Commit-Revision: 328117 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 11:05:53 -0000 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 __FBSDID("$FreeBSD$"); -#include -#include -#include -#include -#include -#include #include -#include +#include + #include #include +#include +#include +#include +#include +#include #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];