cvs commit: src/sys/geom/part g_part_bsd.c
Marcel Moolenaar
marcel at FreeBSD.org
Mon Dec 24 01:02:01 UTC 2007
marcel 2007-12-24 01:02:00 UTC
FreeBSD src repository
Modified files:
sys/geom/part g_part_bsd.c
Log:
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.
Revision Changes Path
1.3 +25 -41 src/sys/geom/part/g_part_bsd.c
More information about the cvs-all
mailing list