Re: [patch] NetBSD disklabel support for geom_bsd




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"



Relevant Pages

  • Re: [patch] NetBSD disklabel support for geom_bsd
    ... NetBSD's 'c' partition describes NetBSD slice. ... NetBSD's 'd' partition describes the whole HDD. ... the whole disk only on i386, ...
    (freebsd-current)
  • Extended msdos partition
    ... I was user of NetBSD (and a bit of slackware linux) before I moved to ... "extneded" slice is another 3GB fat32 slice) ... damaged my partition table), but it still something about that it cannot ...
    (freebsd-stable)
  • Re: [patch] NetBSD disklabel support for geom_bsd
    ... NetBSD's 'd' partition describes the whole HDD. ... According to the NetBSD disklabel man page, ... But FreeBSD already supports slice units, ... What I'm trying to show is that FreeBSD already ...
    (freebsd-current)
  • Re: I dont see anything to answer my q
    ... The ones that come with FreeBSD will handle fat and fat32 ... successfully a number of times is Partition Magic. ... What the BSD UNIX world calls a disk slice, ... clear while using the terms slice and primary partition. ...
    (freebsd-questions)
  • Re: New user - small file server questions and quick GUI question
    ... I reckon the proposed disk usage spec from the FreeBSD hand book should ... IMO the root slice is too small in the handbook. ... is for the bootable OS partition and 'b' is used for swap. ... In FreeBSD, ...
    (freebsd-questions)