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).
This commit is contained in:
Matthew Dillon 2002-12-22 04:46:44 +00:00
parent 6e5328af01
commit 6c82636572
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108170

View File

@ -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);