Date: Tue, 9 Jul 2002 16:47:20 +0400 (MSD) From: Dmitry Morozovsky <marck@rinet.ru> To: Erik Trulsson <ertr1013@student.uu.se>, <dougb@freebsd.org> Cc: Eugene Grosbein <eugen@www.svzserv.kemerovo.su>, <stable@freebsd.org> Subject: Re: system immutable files make mergemaster look funny Message-ID: <20020709164425.J77578-100000@woozle.rinet.ru> In-Reply-To: <20020709121500.GA13059@falcon.midgard.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Jul 2002, Erik Trulsson wrote: ET> > Do you wish to delete what is left of /var/tmp/temproot? [no] yes ET> > rm: /var/tmp/temproot/var/empty: Operation not permitted ET> > rm: /var/tmp/temproot/var: Directory not empty ET> > rm: /var/tmp/temproot: Directory not empty ET> > *** /var/tmp/temproot has been deleted ET> > ET> > ET> > Obviously, last sentence isn't true :-) ET> ET> Obviously?? It is actually true: /var/tmp/temproot actually is deleted ET> afterwards (at least for a recent -stable). ET> ET> What mergemaster does when deleting is the following: ET> ET> rm -rf ET> chflags -R ET> rm -rf ET> ET> The only problem is that those diagnostics from 'rm' might be a bit ET> misleading and/or annoying but everything works fine. Well maybe then first rm -rf should be redirected to /dev/null? Index: mergemaster.sh =================================================================== RCS file: /home/ncvs/src/usr.sbin/mergemaster/mergemaster.sh,v retrieving revision 1.6.2.14 diff -u -r1.6.2.14 mergemaster.sh --- mergemaster.sh 30 Jun 2002 19:01:35 -0000 1.6.2.14 +++ mergemaster.sh 9 Jul 2002 12:45:39 -0000 @@ -398,7 +398,7 @@ CVS_ID_TAG=FreeBSD delete_temproot () { - rm -rf "${TEMPROOT}" + rm -rf "${TEMPROOT}" >/dev/null 2>&1 chflags -R 0 "${TEMPROOT}" rm -rf "${TEMPROOT}" } Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ 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?20020709164425.J77578-100000>