CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2019/11/25 10:02:57

Modified files:
        sys/scsi       : scsi_all.h scsi_base.c scsi_disk.h scsiconf.h 
                         sd.c 

Log message:
Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 to
scsi_all.h.

Add scsi_read_cap_10() and scsi_read_cap_16() functions to
scsi_base.c, i.e. move logic to do actual READ_CAPACITY commands out
of sd_read_cap() and sd_read_cap_16().

This will allow the READ_CAPACITY code to be reused by cd(4).

Return -1 for errors where the error code is just discarded, reducing
ENOMEM, ENXIO, EIO uses.

No intentional functional change.

Reply via email to