From owner-freebsd-stable Fri Aug 2 16:51:46 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E25637B400 for ; Fri, 2 Aug 2002 16:51:43 -0700 (PDT) Received: from hamberg.it.uu.se (hamberg.it.uu.se [130.238.9.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 873F143E65 for ; Fri, 2 Aug 2002 16:51:41 -0700 (PDT) (envelope-from ertr1013@csd.uu.se) Received: (from ertr1013@localhost) by hamberg.it.uu.se (8.8.5/8.8.5) id BAA13244; Sat, 3 Aug 2002 01:51:37 +0200 (MET DST) Date: Sat, 3 Aug 2002 01:51:37 +0200 From: Erik Trulsson To: "Maxim M. Kazachek" Cc: freebsd-stable@freebsd.org Subject: Re: mergemaster error messages Message-ID: <20020803015137.A23202@student.uu.se> References: <20020803062229.R922-100000@sbk-gw.sibnet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020803062229.R922-100000@sbk-gw.sibnet.ru>; from stranger@sberbank.sibnet.ru on Sat, Aug 03, 2002 at 06:34:58AM +0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Aug 03, 2002 at 06:34:58AM +0700, Maxim M. Kazachek wrote: > After mergemaster I see following messages: > > Do you wish to delete what is left of /var/tmp/temproot? [no] yes > rm: /var/tmp/temproot/var/empty: operation not permitted > rm: /var/tmp/temproot/var: Directory not empty > rm: /var/tmp/temproot: Directory not empty > *** /var/tmp/temproot has been removed > > Why we need to do rm -rf twice before and after chflags -R 0? It is not necessary to run rm -rf both before and after, it would suffice only doing it after the chflags invocation. But it is much faster doing chflags -R on an almost empty directory tree than on one with lots of files in it. If the rm -rf was only done after, all files in the tree would be visited twice; once by chflags and once by rm, this way most files are only looked at once. So, it is not necessary, but it is a bit more efficient. > Are we need /var/empty with schg flag? It is not *needed*. The schg flags is there to make sure that sysadmins realize that /var/empty *really* is supposed to be empty. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message