OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Kenneth R Westerback (krwcvs.openbsd.org)
Date: Tue Jun 14 2005 - 22:06:48 CDT


CVSROOT: /cvs
Module name: src
Changes by: krwcvs.openbsd.org 2005/06/14 21:06:48

Modified files:
        sys/scsi : sd_scsi.c

Log message:
Use scsi_size() as preferred disk size in all cases. Allow devices
using FLEX GEOMETRY mode sense page to use the existing heads *
sectors * cyls calculation if scsi_size() fails.

Fixes jolan's iPod Shuffle, and presumably other devices lying or
confused about their geometry and it's relation to the number of
blocks.

Also save any supplied rpm and blocksize when faking, as previous
code tried to do.

ok jolan fgsch tdeval