From owner-svn-src-user@FreeBSD.ORG Fri May 29 06:27:34 2015 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7A69AE9; Fri, 29 May 2015 06:27:34 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B60441A4E; Fri, 29 May 2015 06:27:34 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t4T6RYRw042062; Fri, 29 May 2015 06:27:34 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t4T6RYRP042061; Fri, 29 May 2015 06:27:34 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201505290627.t4T6RYRP042061@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Fri, 29 May 2015 06:27:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r283685 - user/pho/stress2/misc X-SVN-Group: user 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.20 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: Fri, 29 May 2015 06:27:34 -0000 Author: pho Date: Fri May 29 06:27:34 2015 New Revision: 283685 URL: https://svnweb.freebsd.org/changeset/base/283685 Log: Ignore more fts_info types and do not break on unexpected type. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/procfs3.sh Modified: user/pho/stress2/misc/procfs3.sh ============================================================================== --- user/pho/stress2/misc/procfs3.sh Fri May 29 06:22:57 2015 (r283684) +++ user/pho/stress2/misc/procfs3.sh Fri May 29 06:27:34 2015 (r283685) @@ -101,12 +101,15 @@ test(void) continue; case FTS_SL: /* Ignore. */ continue; - case FTS_DNR: /* Warn, continue. */ - case FTS_ERR: + case FTS_DNR: + continue; case FTS_NS: + continue; + case FTS_ERR: case FTS_DEFAULT: - warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); - break; + warnx("%s: %s. fts_info = %d", p->fts_path, strerror(p->fts_errno), + p->fts_info); + continue; default: printf("%s: default, %d\n", getprogname(), p->fts_info); break;