From owner-freebsd-stable@FreeBSD.ORG Fri Jan 13 03:11:55 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 194231065680; Fri, 13 Jan 2012 03:11:55 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id CA8178FC16; Fri, 13 Jan 2012 03:11:54 +0000 (UTC) Received: by obbta17 with SMTP id ta17so2445828obb.13 for ; Thu, 12 Jan 2012 19:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MwXOus0RH7htXpylW3Fv8pJFJqOcqEm51zuMf+uQr1o=; b=S/WjyJgnBUhP0I5/VVL01U//9pZvunUJjLXUfcMpcxGMYHpS1Hjufw8jYYPn5xXj7W uQ3UOmPGH1lAhyAZQGL/Ugtrv1EEQj7i4xLM0zIiAix0BnlSTQthOFC2q7E2uV3vags5 1KczsTR5xrqN+IE0zi69cGC9QRKXro+bHhYHc= MIME-Version: 1.0 Received: by 10.50.181.169 with SMTP id dx9mr4121695igc.0.1326424314161; Thu, 12 Jan 2012 19:11:54 -0800 (PST) Received: by 10.182.152.6 with HTTP; Thu, 12 Jan 2012 19:11:54 -0800 (PST) In-Reply-To: <4F0F8E6F.8000909@FreeBSD.org> References: <20120111161110.4258969c.rpclark@tds.net> <20120112200843.2a348d2f.rpclark@tds.net> <4F0F8E6F.8000909@FreeBSD.org> Date: Thu, 12 Jan 2012 19:11:54 -0800 Message-ID: From: Garrett Cooper To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Cc: Andre Goree , freebsd-stable@freebsd.org, Rob Clark 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: Fri, 13 Jan 2012 03:11:55 -0000 On Thu, Jan 12, 2012 at 5:52 PM, 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}/* +1. And it's faster yet when you can run parallel copies of rm on different portions of the directory tree (e.g. xargs, find [..] -exec) as rm is O(n). Cheers, -Garrett