Lines Matching refs:reply
853 * Send the reply, check for error and print the msg if any error
854 * occured when sending the reply.
863 ndmp_send_reply(ndmp_connection_t *connection, void *reply, char *msg)
865 if (ndmp_send_response(connection, NDMP_NO_ERR, reply) < 0)
1179 * reply.error The general errno (ioctl)
1196 ndmp_execute_cdb_reply reply;
1203 (void) memset((void *)&reply, 0, sizeof (reply));
1210 reply.error = NDMP_NO_MEM_ERR;
1212 NDMP_NO_ERR, (void *)&reply) < 0)
1214 " scsi_execute_cdb reply.");
1244 reply.error = NDMP_ILLEGAL_ARGS_ERR;
1245 ndmp_send_reply(session->ns_connection, (void *) &reply,
1246 "sending execute_cdb reply");
1252 reply.error = NDMP_NO_ERR;
1257 reply.error = NDMP_DEV_NOT_OPEN_ERR;
1258 ndmp_send_reply(session->ns_connection, (void *) &reply,
1259 "sending execute_cdb reply");
1271 reply.error = NDMP_IO_ERR;
1274 reply.status = cmd.uscsi_status;
1277 reply.datain.datain_len = cmd.uscsi_buflen;
1278 reply.datain.datain_val = cmd.uscsi_bufaddr;
1280 reply.dataout_len = request->dataout.dataout_len;
1283 reply.ext_sense.ext_sense_len = cmd.uscsi_rqlen - cmd.uscsi_rqresid;
1284 reply.ext_sense.ext_sense_val = rq_buf;
1287 (void *)&reply) < 0)
1288 NDMP_LOG(LOG_DEBUG, "Error sending scsi_execute_cdb reply.");