Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2010 20:08:10 +0930
From:      Matt Thyer <matt.thyer@gmail.com>
To:        ticso@cicely.de
Cc:        freebsd-current@freebsd.org
Subject:   Re: fsck unable to read disk sectors
Message-ID:  <AANLkTiksC3SL5IVwrEwPbv5L8sEZyZrqPX7JbAEFNgFx@mail.gmail.com>
In-Reply-To: <20100517140207.GZ92942@cicely7.cicely.de>
References:  <permail-20100329221104f0889e8400006cd5-a_best01@message-id.uni-muenster.de> <3a142e751003291708nc3e110bjca1789cc807f61a2@mail.gmail.com> <AANLkTikKgJQ5iEHm8Zl45eAZY2ppsYYCkmXivVj89tXk@mail.gmail.com> <AANLkTim0zpd3iVHu-O6Zo8w_h8mtrLPdsrw9qDP0jKZM@mail.gmail.com> <20100512014651.GN73283@cicely7.cicely.de> <AANLkTinZqDH4jHeyk6WCccT6gSaQRTyMR7y0fr7h8d3W@mail.gmail.com> <20100517140207.GZ92942@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
It wouldn't be the BSD way to try to stop the user shooting themselves
in the foot.
And I agree too as it wouldn't be right for glabel to try to keep
track of all possible uses for a volume and know whether each is
present.
That would be a typical Linux type solution.

However, would it be too much for glabel to just know about UFS and
tell the user to use tunefs instead if there appears to be a UFS
filesystem present ?

On 17 May 2010 23:32, Bernd Walter <ticso@cicely7.cicely.de> wrote:
> On Mon, May 17, 2010 at 10:54:17PM +0930, Matt Thyer wrote:
>> On 12 May 2010 11:16, Bernd Walter <ticso@cicely7.cicely.de> wrote:
>> >
>> > On Tue, May 11, 2010 at 10:15:13PM +0200, Alexander Best wrote:
>> > > i've posted a log here which is pretty self explanatory:
>> > >
>> > > http://pastebin.com/tn3NiDDW
>> > >
>>
>> [snip]
>>
>> >
>> > One of the typical problems users have is that they forget that
>> > adding a label takes one sector, so the labeled device is smaller.
>> > This is no problem if you create the filesystem on the labeled
>> > drive, but often enough people add the label after creating the
>> > filesystem.
>>
>> FreeBSD's utilities should be able to detect this situation and either
>> correct the filesystem size or refuse to apply the label.
>
> How can this work?
> glabel doesn't know anything about volume contents - it just writes a
> label-sector and offers the remaning storage as a new volume.
> Result: Refusing is impossible.
> Changing UFS filesystem size isn't an easy task and the last sector is
> already lost when filesystem comes into game.
> Result: Too late.
> I think the only reasonable thing to be done is that fsck can speak
> up by checking the volume size with the filesystems size _after_ glabel
> has overwritten the last sector.
>
> --
> B.Walter <bernd@bwct.de> http://www.bwct.de
> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
>



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