Date: Fri, 29 May 2015 06:27:34 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r283685 - user/pho/stress2/misc Message-ID: <201505290627.t4T6RYRP042061@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505290627.t4T6RYRP042061>