From owner-cvs-all Wed Jun 26 23:24:49 2002 Delivered-To: cvs-all@freebsd.org Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by hub.freebsd.org (Postfix) with ESMTP id 7F2C837B401; Wed, 26 Jun 2002 23:24:09 -0700 (PDT) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.3/8.12.3) with ESMTP id g5R6NjM1092420; Wed, 26 Jun 2002 23:23:48 -0700 (PDT) (envelope-from dl-freebsd@catspoiler.org) Message-Id: <200206270623.g5R6NjM1092420@gw.catspoiler.org> Date: Wed, 26 Jun 2002 23:23:46 -0700 (PDT) From: Don Lewis Subject: Re: cvs commit: src/etc/mtree BSD.var.dist To: dot@dotat.at Cc: mi+mx@aldan.algebra.com, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org In-Reply-To: <20020626141216.A26954@chiark.greenend.org.uk> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 26 Jun, Tony Finch wrote: > On Tue, Jun 25, 2002 at 06:38:30PM -0700, Don Lewis wrote: >> On 26 Jun, Tony Finch wrote: >> >> > I don't think it matters much where it is: I was thinking of using >> > mkdtemp() and removing the directory after chdiring and chrooting into >> > it, to be really sure that some other bugger doesn't come along and >> > fool about with it. >> >> That will provoke complaints from fsck after every unclean shutdown, >> which will provoke complaints about worried users who don't understand >> what's going on under the hood. > > Good point, but users should expect that kind of thing after an unclean > shutdown. If they don't like complaints from fsck then they should shut > down properly. The error might be a bit unexpected if the filesystem is otherwise idle at the time of the crash. Power sources, kernel bugs, and cats knocking objects onto the power switch don't always cooperate enough for clean shutdowns. This solution also precludes using a directory on a read-only filesystem, which is another way of guaranteeing the emptyness of the directory. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message