Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2002 23:23:46 -0700 (PDT)
From:      Don Lewis <dl-freebsd@catspoiler.org>
To:        dot@dotat.at
Cc:        mi+mx@aldan.algebra.com, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/etc/mtree BSD.var.dist
Message-ID:  <200206270623.g5R6NjM1092420@gw.catspoiler.org>
In-Reply-To: <20020626141216.A26954@chiark.greenend.org.uk>

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




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