]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
add a knob that disables detection of write protected disks
authoravg <avg@FreeBSD.org>
Mon, 17 Dec 2018 16:01:37 +0000 (16:01 +0000)
committeravg <avg@FreeBSD.org>
Mon, 17 Dec 2018 16:01:37 +0000 (16:01 +0000)
commitdcef4b8263f5156c7b65831725461933f35a8352
treecaeb3c1aea3f64e4fe03e38b8a5fea709b0901d4
parent53dba18a1b398c13a795558d636b8dce20ef376f
add a knob that disables detection of write protected disks

It has been reported that on some systems (with real hardware passed
through to a virtual machine) the WP detection causes USB disk probing
failures.

While here, also fix the selection of the next state in the case
of malloc failure in DA_STATE_PROBE_WP.  It was DA_STATE_PROBE_RC
unconditionally even when it should have been DA_STATE_PROBE_RC16.

PR: 225794
Reported by: David Boyd <David.Boyd49@twc.com>
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D18496
sys/cam/scsi/scsi_da.c