Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115913083
D35093.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
957 B
Referenced Files
None
Subscribers
None
D35093.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D35093: cam_periph: Return ENXIO when peripheral is invalidated
Attached
Detach File
Event Timeline
Log In to Comment