summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ndmpd/ndmp/ndmpd_util.c')
-rw-r--r--usr/src/cmd/ndmpd/ndmp/ndmpd_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/cmd/ndmpd/ndmp/ndmpd_util.c b/usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
index 71da716f42..80a08e55a8 100644
--- a/usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
+++ b/usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
@@ -1409,7 +1409,9 @@ ndmp_execute_cdb(ndmpd_session_t *session, char *adapter_name, int sid, int lun,
}
if (ioctl(fd, USCSICMD, &cmd) < 0) {
- NDMP_LOG(LOG_ERR, "Failed to send command to device: %m");
+ if (errno != EIO && errno != 0)
+ NDMP_LOG(LOG_ERR,
+ "Failed to send command to device: %m");
NDMP_LOG(LOG_DEBUG, "ioctl(USCSICMD) error: %m");
if (cmd.uscsi_status == 0)
reply.error = NDMP_IO_ERR;