diff options
author | dillon <dillon@FreeBSD.org> | 2002-12-22 04:46:44 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-12-22 04:46:44 +0000 |
commit | 8a34ca48d9055180b3e2c43e407927a423cc1726 (patch) | |
tree | 50b6b50b91509cb257a66dd461142ec75a29faa9 /sys | |
parent | 785e008f9bc1e0702b1e499409f56e5b6ab03769 (diff) | |
download | FreeBSD-src-8a34ca48d9055180b3e2c43e407927a423cc1726.zip FreeBSD-src-8a34ca48d9055180b3e2c43e407927a423cc1726.tar.gz |
Revert part of the last commit. Do not fake-up the cylinders to make
the sectors fit (at least, don't fake them up any more then they are
already faked up).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/umass.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index 2647f3a..db3c936 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -2470,8 +2470,7 @@ umass_cam_action(struct cam_sim *sim, union ccb *ccb) ccg->secs_per_track = 32; } secs_per_cylinder = ccg->heads * ccg->secs_per_track; - ccg->cylinders = (ccg->volume_size + secs_per_cylinder - 1) / - secs_per_cylinder; + ccg->cylinders = ccg->volume_size / secs_per_cylinder; ccb->ccb_h.status = CAM_REQ_CMP; xpt_done(ccb); |