From owner-freebsd-toolchain@FreeBSD.ORG Tue Nov 8 22:26:18 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE4891065672; Tue, 8 Nov 2011 22:26:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 785238FC16; Tue, 8 Nov 2011 22:26:18 +0000 (UTC) Received: from [10.0.0.63] (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id pA8MPDJU095062 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Tue, 8 Nov 2011 15:25:15 -0700 (MST) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20111108215549.GA44260@freebsd.org> Date: Tue, 8 Nov 2011 15:25:07 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <03A12F28-FC6A-479F-9F94-A12E3D7EEE1F@bsdimp.com> References: <20111108204912.GA34155@freebsd.org> <4EB9A268.5020805@FreeBSD.org> <20111108215549.GA44260@freebsd.org> To: Alexander Best X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Tue, 08 Nov 2011 15:25:15 -0700 (MST) Cc: freebsd-toolchain@freebsd.org, Dimitry Andric Subject: Re: make cleanworld X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2011 22:26:18 -0000 On Nov 8, 2011, at 2:55 PM, Alexander Best wrote: > find -flags +XXX /usr/obj/usr/git-freebsd-head -exec chflags -R 0 {} + > rm/obj/usr/git-freebsd-head/* >=20 > that should only execute chflags(1) on those files with flags set. THat's only faster if the entire directory tree says in the directory = cache. It isn't so much about chflags being called N times, but having = to look at N files twice. Warner