summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/pnpdevs.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-03-16 04:27:20 +0000
committermillert <millert@openbsd.org>1999-03-16 04:27:20 +0000
commit4b9a3bda12a9137189db611cde3f6cff53250a27 (patch)
tree034aa72511b3978bf68b5e2c536a29ba06fcc764 /sys/dev/isa/pnpdevs.h
parentmerge with freesbd: (diff)
downloadwireguard-openbsd-4b9a3bda12a9137189db611cde3f6cff53250a27.tar.xz
wireguard-openbsd-4b9a3bda12a9137189db611cde3f6cff53250a27.zip
Fix longstanding problem when rounding values to neared cylinder.
We used to just round the size to make size % secpercyl == 0. Now it makes (size + offset) % secpercyl == 0 so partitions end on a cylinder bondary (which was the original intent). The problem with the old method is that if you have an fdisk table on the disk, 'a' will start somewhere between 32 and 63, throwing off the calculations.
Diffstat (limited to 'sys/dev/isa/pnpdevs.h')
0 files changed, 0 insertions, 0 deletions