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.
Details
Tested disk probing with WP detection on and off.
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
While here, I also fixed setting of the next state in the case of malloc failure in DA_STATE_PROBE_WP.
sys/cam/scsi/scsi_da.c | ||
---|---|---|
3343 ↗ | (On Diff #51800) | wouldn't it be better to go directly to PROBE_RC* rather than have this useless trip through STATE_PROBE_WP? |
sys/cam/scsi/scsi_da.c | ||
---|---|---|
3343 ↗ | (On Diff #51800) | That's certainly another possibility to do it, but I am not sure if it's really better. So, I don't have a preference. I did it this way, but I can re-do it the other way. |
3347 ↗ | (On Diff #51800) | I wonder if there should be an inline function for choosing between DA_STATE_PROBE_RC16 and DA_STATE_PROBE_RC, given that the check is going to be repeated 3 or 4 times. |