From owner-freebsd-stable@FreeBSD.ORG Mon Jan 23 01:08:51 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 6CAC7106567C for ; Mon, 23 Jan 2012 01:08:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 044C917AC8E; Mon, 23 Jan 2012 01:08:49 +0000 (UTC) Message-ID: <4F1CB321.50403@FreeBSD.org> Date: Sun, 22 Jan 2012 17:08:49 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120119 Thunderbird/9.0 MIME-Version: 1.0 To: cliftonr@volcano.org References: <20120111161110.4258969c.rpclark@tds.net> <20120112200843.2a348d2f.rpclark@tds.net> <4F0F8E6F.8000909@FreeBSD.org> <74dee0a775b93db4771f4de96eaf86c2@volcano.org> In-Reply-To: <74dee0a775b93db4771f4de96eaf86c2@volcano.org> X-Enigmail-Version: 1.3.5 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: GENERIC make buildkernel error / fails - posix_fadvise X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 01:08:51 -0000 On 01/22/2012 11:00, cliftonr@volcano.org wrote: > On 12.01.2012 15:52, Doug Barton wrote: >>>> chflags -R noschg /usr/obj/usr >>>> rm -rf /usr/obj/usr >> >> It's much faster to do: >> >> /bin/rm -rf ${obj}/* 2> /dev/null || /bin/chflags -R 0 ${obj}/* && >> /bin/rm -rf ${obj}/* > > If I could just add one thing here, for those who might be tempted > to immediately cut and paste that elegant command line: > > Consider, how does that command evaluate if the shell variable "obj" > is not set, and you're running that literal string as root? It wasn't intended that anyone actually do what you're considering. I assumed that our users are smart enough to know that they have to substitute the actual value of /usr/obj. Doug -- It's always a long day; 86400 doesn't fit into a short. Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/