]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
add a knob that disables detection of write protected disks
authorAndriy Gapon <avg@FreeBSD.org>
Mon, 17 Dec 2018 16:01:37 +0000 (16:01 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Mon, 17 Dec 2018 16:01:37 +0000 (16:01 +0000)
commit5b7f9fada108c30866d0de4700a6cba8250b5e19
treecaeb3c1aea3f64e4fe03e38b8a5fea709b0901d4
parentb7841ae6501e2cbb0a3d90ea412f2591d4b17f55
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