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: Fri Jun 24 2005 - 16:03:37 CDT


CVSROOT: /cvs
Module name: src
Changes by: krwcvs.openbsd.org 2005/06/24 15:03:37

Modified files:
        sys/scsi : sd_scsi.c

Log message:
Eliminate sd_scsibus_get_optparms() as unnecessary, instead getting
the blocksize from scsi_size() at the same time as the capacity is
found. Use the fake geometry already present in
sd_scsibus_get_parms(), which is identical to the one _optparms used.

Eliminates another old mode sense usage and associated struct.

Only affects T_OPTICAL sd devices, which seem extremely rare. Similar
to what netbsd does, and freebsd as far as I can make out.