summaryrefslogtreecommitdiffstats
path: root/share/colldef
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2007-12-24 01:01:59 +0000
committermarcel <marcel@FreeBSD.org>2007-12-24 01:01:59 +0000
commit5817fa6edc7badf743a8f2b9877038a445bfad11 (patch)
tree436988b1713afb96aa6824a40a4549e92cf35169 /share/colldef
parent8c3947d45bc4890bd2a49e14ab7df4457e845dfe (diff)
downloadFreeBSD-src-5817fa6edc7badf743a8f2b9877038a445bfad11.zip
FreeBSD-src-5817fa6edc7badf743a8f2b9877038a445bfad11.tar.gz
Various fixes:
o BSD disklabels have relative offsets. Even for the BSD in MBR slice setup, except when the mbroffset ioctl is supported. Since we don't support that ioctl, bsdlabel(8) expects relative offsets. So, when reading an existing disklabel, correct for disklabels that mistakenly have the mbroffset offsets. o Don't take the geometry seriously, because it's untrustworthy. We do expect the numbers to be within range. This means that the secperunit field will not be computed from secpercyl and ncyls, but simply is the mediasize in sectors. o Don't enforce partitions to be aligned to track boundaries. The default label, constructed by bsdlabel(8), puts partition a at offset BBSIZE bytes, which commonly means sector 16.
Diffstat (limited to 'share/colldef')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud