Fix two 19 years old (since day one) bug in bad144 sector reassignment logic:
authormiod <miod@openbsd.org>
Mon, 12 Jan 2015 21:31:06 +0000 (21:31 +0000)
committermiod <miod@openbsd.org>
Mon, 12 Jan 2015 21:31:06 +0000 (21:31 +0000)
commit5ce972886967a424c0baa84d3a6b1abfb23b552f
tree0221419f3ab7e57e3d20c6b66376ef2835bfa62d
parent8acb1e22e6881073fae6967c9dd8bb3e51cff36d
Fix two 19 years old (since day one) bug in bad144 sector reassignment logic:
- when entering bad144 mode, correctly compute the actual C/H/S values for the
  logical block number.
- when leaving bad144 mode and resuming normal I/O operation, when computing
  back the C/H/S values for the next logical block number, compute the
  sector number correctly.
sys/arch/sparc/dev/xd.c
sys/arch/sparc/dev/xy.c