From owner-freebsd-questions@FreeBSD.ORG Sun Sep 14 15:24:10 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43DE216A4C0 for ; Sun, 14 Sep 2003 15:24:10 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8301843F93 for ; Sun, 14 Sep 2003 15:24:08 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h8EMMX7T012845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Sep 2003 23:22:37 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h8EMMTAR012844; Sun, 14 Sep 2003 23:22:29 +0100 (BST) (envelope-from matthew) Date: Sun, 14 Sep 2003 23:22:29 +0100 From: Matthew Seaman To: Charles Howse Message-ID: <20030914222229.GA12717@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Charles Howse , 'Jerry McAllister' , 'Rob Lahaye' , freebsd-questions@freebsd.org References: <200309141551.h8EFpGYu005148@clunix.cl.msu.edu> <007701c37afe$83660910$04fea8c0@moe> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <007701c37afe$83660910$04fea8c0@moe> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.5 required=5.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: 'Rob Lahaye' cc: 'Jerry McAllister' cc: freebsd-questions@freebsd.org Subject: Re: mergemaster: "schg" flag for temproot/var/emtpy ?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2003 22:24:10 -0000 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 14, 2003 at 03:26:43PM -0500, Charles Howse wrote: > > > SO I did type mergemaster and all went well. > > >=20 > > > Decided then to remove the temproot directory, but failed! > > >=20 > > > # rm -rf /var/tmp/temproot > > > rm: /var/tmp/temproot/var/empty: Operation not permitted > > > rm: /var/tmp/temproot/var: Directory not empty > > > rm: /var/tmp/temproot/: Directory not empty > > >=20 > > > Took me a long while to figure out the=20 > > /var/tmp/temproot/var/empty direcoty > > > has the schg flag set. Very, very confusing. > > > Is there any reason why it is like that? > > > If not, then do not create the empty directory with schg !! > >=20 > > Because /var/empty should not be deleted. Some programs use it. > > I don't know about that particilar variation. >=20 > I'm confused here, but that's nothing new... > I'm running 4.8-RELEASE-p4. >=20 > I can read what Jerry says, but does he mean that /var/empty should not > be deleted, or that /var/tmp/temproot/var/empty should not be deleted? >=20 > These two directories are completely different, and if I'm rebuilding > from source for, say, the second time, then /var/tmp/temproot/var/empty > might exist and definitly should be deleted, right? >=20 /var/tmp/temproot/var/empty should be deleted by mergemaster along with the rest of temproot. There were some modifications a few months back to enable it to deal with the .../var/empty directory -- essentially it just does a 'rm -rf' to get rid of as much as possible, then a 'chflags -R 0' to de-flag the rest and 'rm -rf' again to finish off the job. Perhaps you have an older version of mergemaster before that capability was added. Anyhow, feel free to zap the contents of /var/tmp/temproot manually. Leave /var/empty alone, unless you've got something against ssh(1) working properly. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/ZOoldtESqEQa7a0RAtY4AJwKrDg23MD1PreMMekrfE+9dZrQ6gCgjY1R MHedELHnwL1DHtQcAbjOnbA= =i3XY -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--