From owner-freebsd-toolchain@FreeBSD.ORG Tue Nov 8 22:39:24 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 088691065670; Tue, 8 Nov 2011 22:39:24 +0000 (UTC) Date: Tue, 8 Nov 2011 22:39:24 +0000 From: Alexander Best To: Warner Losh Message-ID: <20111108223924.GA50971@freebsd.org> References: <20111108204912.GA34155@freebsd.org> <4EB9A268.5020805@FreeBSD.org> <20111108215549.GA44260@freebsd.org> <03A12F28-FC6A-479F-9F94-A12E3D7EEE1F@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03A12F28-FC6A-479F-9F94-A12E3D7EEE1F@bsdimp.com> 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:39:24 -0000 On Tue Nov 8 11, Warner Losh wrote: > > 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/* > > > > 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. i think i got it now. ;) sorry for beeing so slow. i'll try to come up with a patch for Makefile, which mentions this in the comment. cheers. alex > > Warner