Re: absolute vs. relative offsets in disklabel



In the last episode (Aug 01), Dmitry Marakasov said:
Recent `disklabel differences FreeBSD, DragonFly' thread gave me a
thought - why do we have absolute offsets in disklabel? AFAIK, on
NetBSD and OpenBSD, label is not necessarily located `near'
filesystems stored in it's partitions - and even disklabel utility
shows absolute offsets (with 'c' covering entire device). FreeBSD,
however, seem to step far away from that standart - 8 partitions
instead of 16, label located in the beginning of a partition,
bsdlabel shows relative offsets. Now I wonder if there are any
reasons for offsets to be actually absolute? There are many weighty
arguments for relative offsets:

I asked this question a few years ago after having problems dd'ing a
FreeBSD installation from one disk to another, and the answer was "it's
always been that way" :) It shouldn't be too hard to have the code
autodetect whether the offsets are relative or absolute by looking at
what the 'c' partition's offset is.

--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [patch] NetBSD disklabel support for geom_bsd
    ... uses slice-relative offsets while NetBSD uses absolute offsets. ... I suppose that it should allow transferring slice image to "dangerously dedicated" media of the same size, and getting valid disklabel as a result. ... I've prepared disk slice for FreeBSD at colo, locally created the same HDD layout on my disk, locally installed FreeBSD-4.11, dd'ed slice contents to a file, transferred it to the colo, dd'ed it it that slice, switched active partition to this slice, rebooted the machine. ...
    (freebsd-current)
  • Re: absolute vs. relative offsets in disklabel
    ... thought - why do we have absolute offsets in disklabel? ... the offsets are ... It has nothing to do with GEOM, it's ondisk format of disklabel. ...
    (freebsd-hackers)
  • absolute vs. relative offsets in disklabel
    ... label is not necessarily located `near' filesystems stored ... in it's partitions - and even disklabel utility shows absolute offsets ...
    (freebsd-hackers)
  • Re: absolute vs. relative offsets in disklabel
    ... thought - why do we have absolute offsets in disklabel? ... the offsets are ... It has nothing to do with GEOM, it's ondisk format of disklabel. ...
    (freebsd-hackers)
  • Re: absolute vs. relative offsets in disklabel
    ... label is not necessarily located `near' ... filesystems stored in it's partitions - and even disklabel utility ... shows absolute offsets. ...
    (freebsd-hackers)