Page MenuHomeFreeBSD

D35093.diff
No OneTemporary

D35093.diff

diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -1609,7 +1609,7 @@
*/
periph = xpt_path_periph(ccb->ccb_h.path);
if (periph->flags & CAM_PERIPH_INVALID) {
- error = EIO;
+ error = ENXIO;
*action_string = "Periph was invalidated";
} else if ((sense_flags & SF_RETRY_BUSY) != 0 ||
ccb->ccb_h.retry_count > 0) {
@@ -1959,7 +1959,7 @@
/* Unconditional requeue if device is still there */
if (periph->flags & CAM_PERIPH_INVALID) {
action_string = "Periph was invalidated";
- error = EIO;
+ error = ENXIO;
} else if (sense_flags & SF_NO_RETRY) {
error = EIO;
action_string = "Retry was blocked";
@@ -1987,7 +1987,7 @@
case CAM_DATA_RUN_ERR:
default:
if (periph->flags & CAM_PERIPH_INVALID) {
- error = EIO;
+ error = ENXIO;
action_string = "Periph was invalidated";
} else if (ccb->ccb_h.retry_count == 0) {
error = EIO;

File Metadata

Mime Type
text/plain
Expires
Thu, May 1, 8:17 AM (13 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17877436
Default Alt Text
D35093.diff (957 B)

Event Timeline