Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2002 01:51:37 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        "Maxim M. Kazachek" <stranger@sberbank.sibnet.ru>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: mergemaster error messages
Message-ID:  <20020803015137.A23202@student.uu.se>
In-Reply-To: <20020803062229.R922-100000@sbk-gw.sibnet.ru>; from stranger@sberbank.sibnet.ru on Sat, Aug 03, 2002 at 06:34:58AM %2B0700
References:  <20020803062229.R922-100000@sbk-gw.sibnet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020803015137.A23202>