Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Dec 2002 20:35:43 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        Nate Lawson <nate@root.org>, Poul-Henning Kamp <phk@critter.freebsd.dk>, Riccardo Torrini <riccardo@torrini.org>, freebsd-current@FreeBSD.ORG
Subject:   Re: Trivial patch: fdisk doesn't recognize my partitions
Message-ID:  <3DEAE31F.F26753A5@mindspring.com>
References:  <Pine.BSF.4.21.0212011443300.1744-100000@root.org> <3DEA9F38.7A1F99C2@mindspring.com> <p05200f23ba1067e63226@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
Garance A Drosihn wrote:
> My own opinion is that if I have explicitly hid a partition,
> then freebsd should ignore it.  There are times that I do this
> specifically so *freebsd* will ignore it, and I don't want
> freebsd trying to second-guess what I meant.

Exactly.  If you wanted the dratted thing "unhidden", then you
would use the tool you "hid" it with to "unhide" it.


> >Specifically, if it has a valid disklabel on the thing, I don't
> >care what partition ID it has on it, I give it to the disklabel
> >handler.  If it has a valid FAT32 FS on it, I give it to the
> >FAT32FS.  If it has a valid FFS superblock on it, I give it to
> >FFS.  Etc..
> 
> The fact that the disklabel is valid does not mean that the
> filesystem in that partition is still valid.  If I hide a
> partition, it may be that I had a very good reason for hiding
> it, and freebsd shouldn't be "giving it" to anything when the
> partition ID is not a recognized ID.

That's really for the FS code to deal with.

Handling it any other way means that a corrupt disk can panic
the machine.  That's a really dumb thing to allow, particularly
with removable media.

That's just a general principle, totally independant of hiding
things; I only point it out because the people who were wanting
the "hidden" partition types known to FreeBSD are totally missing
the point about what a partition is or isn't, and who's responsible
for validating the data therein.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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