Re: [patch] NetBSD disklabel support for geom_bsd
- From: Dmitry Pryanishnikov <dmitry@xxxxxxxxxxxxxx>
- Date: Sat, 18 Mar 2006 03:18:47 +0200 (EET)
Hello!
On Fri, 17 Mar 2006, Dag-Erling Sm?rgrav wrote:
media offsets in the entries of this label are not slice-relative
like ours, but absolute media offsets instead, and thus can point
_outside_ NetBSD slice! Their partitions can thus be aliases for our
slice devices.
Yes. The offsets in our disklabels used to be device-relative too.
I must admit my error regarding media offsets in FreeBSD disklabels.
They actually absolute media offsets, just like in NetBSD. My patch
works correctly only due to the unusially intellectual code in g_bsd_modify()
which starts with the comment /* Historical braindamage... */. It
understands correctly both absolute and relative offsets. Now
the only valid point in step (2) of my patch is removing partition entries
which point outside provider. I still think that it's too dangerous
to have ad0s3e device which actually isn't part of ad0s3, but is an
alias for ad0s1 instead. And I think that we can remove such alias
entries regardless of partition type (not only for NetBSD slices).
It is still possible to create dangerously dedicated disks, btw, and
it is still possible to put a disklabel (or even a filesystem)
directly on a device. GEOM means *more* freedom, not less.
I've never said the contrary. I'm analyzing particular case: NetBSD
disklabel on sliced media. For the sliceless case, my patch will
essentially be NOOP, since there will be no entry which will point outside
it's provider.
Sincerely, Dmitry
--
Atlantis ISP, System Administrator
e-mail: dmitry@xxxxxxxxxxxxxx
nic-hdl: LYNX-RIPE
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- References:
- [patch] NetBSD disklabel support for geom_bsd
- From: Dmitry Pryanishnikov
- Re: [patch] NetBSD disklabel support for geom_bsd
- From: Dag-Erling Smørgrav
- Re: [patch] NetBSD disklabel support for geom_bsd
- From: Dmitry Pryanishnikov
- Re: [patch] NetBSD disklabel support for geom_bsd
- From: Dag-Erling Smørgrav
- [patch] NetBSD disklabel support for geom_bsd
- Prev by Date: Re: [patch] NetBSD disklabel support for geom_bsd
- Next by Date: Re: [patch] NetBSD disklabel support for geom_bsd
- Previous by thread: Re: [patch] NetBSD disklabel support for geom_bsd
- Next by thread: Re: [patch] NetBSD disklabel support for geom_bsd
- Index(es):
Relevant Pages
|