OpenBSD cvs log

created 2019-12-02T03:02:55Z
begin 2019-11-25T00:00:00Z
end 2019-11-26T00:00:00Z
path src/sys
commits 5

date 2019-11-25T11:32:17Z
author mpi
files src/sys/dev/usb/if_athn_usb.c log diff annotate
message Convert to tsleep_nsec(9) and use the correct timeout period in msec.

Tested by kevlo@, ok stsp@

date 2019-11-25T11:33:51Z
author mpi
files src/sys/ufs/ffs/ffs_softdep.c log diff annotate
src/sys/ufs/mfs/mfs_vfsops.c log diff annotate
src/sys/ufs/ufs/ufs_quota.c log diff annotate
message Convert infinite sleeps to tsleep_nsec(9).

ok bluhm@, cheloha@

date 2019-11-25T17:02:56Z
author krw
files src/sys/scsi/scsi_all.h log diff annotate
src/sys/scsi/scsi_base.c log diff annotate
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.

date 2019-11-25T17:02:57Z
author krw
files src/sys/scsi/scsi_disk.h log diff annotate
src/sys/scsi/scsiconf.h log diff annotate
src/sys/scsi/sd.c log diff annotate
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.

date 2019-11-25T17:48:31Z
author krw
files src/sys/scsi/cd.c log diff annotate
message Use scsi_read_cap[10|16] instead of re-rolling the code.

More careful initialization, better error/debug messages.