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
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to