Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Oct 2010 08:29:06 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        Andrey V. Elsukov <bu7cher@yandex.ru>
Cc:        stable@freebsd.org
Subject:   Re: Label question...why does ufs label vanish on mount?
Message-ID:  <B6AAC89E-5651-4B4B-B770-11443A7BCC22@lassitu.de>
In-Reply-To: <4CB53BF7.1020408@yandex.ru>
References:  <20101012185100.5AA661CC3E@ptavv.es.net> <4CB53BF7.1020408@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 13.10.2010 um 06:56 schrieb Andrey V. Elsukov:

> On 12.10.2010 22:51, Kevin Oberman wrote:
>> For some reason the /dev/ufs/label entry that geom creates for every =
UFS
>> formatted partition is deleted when the device is mounted. This is =
not
>> the case for other file systems, though I have not tried them all. It
>> makes the drive much harder to deal with when you have to keep track =
of
>> which physical drive contains the labeled media. It is a particular
>> issue for hald and the tools which depend on it.
>>=20
>> Is there a good reason for this odd behavior of UFS? If there is not =
a
>> good reason, could it be changed?
>=20
> When you are opening provider for writing (i.e. mount FS) GEOM(4)
> initiates SPOILING and all consumers that are attached to this =
provider
> except one will self-destroyed. When you are closing provider GEOM(4)
> initiates TASTING and consumers can return back. Look at man 4 geom
> for details.

That explains the mechanism, but not the rationale.  Or is it just an =
unintended consequence?  And how is da2p1 different from ufs/mylabel?  =
(Mount da2p1 and ufs/mylabel is removed, but not the other way around.)


Stefan

--=20
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B6AAC89E-5651-4B4B-B770-11443A7BCC22>