Re: [patch] NetBSD disklabel support for geom_bsd

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Fri, 17 Mar 2006 19:19:10 +0100
Dmitry Pryanishnikov <dmitry_at_atlantis.dp.ua> writes:
> Dag-Erling Smørgrav <des_at_des.no> writes:
> > > 2) (most important) NetBSD disklabel describes partitions not
> > > slice-relative (like ours), but the whole device-relative.
> > I believe we already support that - we did it the same way ourselves
> > prior to GEOM, and geom_bsd should still have compat shims for old
> > labels.
> I've never seen such a support in FreeBSD. There was pre-slice era,
> and you can still create "dangerously dedicated" disk and use
> ad0a-ad0h instead of ad0s1a-h. But NetBSD does something very
> different: it creates disklabel at the start of the _slice_, but
> 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.

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.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Fri Mar 17 2006 - 17:19:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:53 UTC