Lines Matching refs:reply

54     ndmp_tape_read_reply *reply);
245 ndmp_tape_close_reply reply;
250 reply.error = NDMP_DEV_NOT_OPEN_ERR;
251 ndmp_send_reply(connection, (void *) &reply,
252 "sending tape_close reply");
277 ndmp_tape_get_state_reply_v2 reply;
285 reply.error = NDMP_DEV_NOT_OPEN_ERR;
286 ndmp_send_reply(connection, (void *) &reply,
287 "sending tape_get_state reply");
294 reply.error = NDMP_IO_ERR;
295 ndmp_send_reply(connection, (void *)&reply,
296 "sending tape_get_state reply");
306 reply.error = NDMP_IO_ERR;
307 ndmp_send_reply(connection, (void *)&reply,
308 "sending tape_get_state reply");
312 reply.flags = 0;
314 reply.file_num = mtstatus.mt_fileno;
315 reply.soft_errors = 0;
316 reply.block_size = dtp.bsize;
318 reply.blockno = mtstatus.mt_blkno;
320 reply.blockno = mtstatus.mt_blkno *
323 reply.soft_errors = 0;
324 reply.total_space = long_long_to_quad(0); /* not supported */
325 reply.space_remain = long_long_to_quad(0); /* not supported */
329 reply.flags, reply.file_num, reply.block_size, reply.blockno);
331 reply.error = NDMP_NO_ERR;
332 ndmp_send_reply(connection, (void *) &reply,
333 "sending tape_get_state reply");
353 ndmp_tape_mtio_reply reply;
361 reply.resid_count = 0;
365 reply.error = NDMP_DEV_NOT_OPEN_ERR;
366 ndmp_send_reply(connection, (void *) &reply,
367 "sending tape_mtio reply");
371 reply.error = NDMP_NO_ERR;
390 reply.error = NDMP_PERMISSION_ERR;
402 reply.error = NDMP_NO_TAPE_LOADED_ERR;
406 reply.error = NDMP_ILLEGAL_ARGS_ERR;
409 if (reply.error == NDMP_NO_ERR && request->tape_op != NDMP_MTIO_TUR) {
436 reply.error = NDMP_IO_ERR;
438 reply.error = NDMP_NO_ERR;
439 reply.resid_count = tapeop.mt_count;
440 ndmp_send_reply(connection, (void *)&reply,
441 "sending tape_mtio reply");
453 reply.error = NDMP_IO_ERR;
454 ndmp_send_reply(connection, (void *)&reply,
455 "sending tape_mtio reply");
460 reply.resid_count = labs(mtstatus.mt_resid);
465 reply.resid_count);
466 ndmp_send_reply(connection, (void *) &reply, "sending tape_mtio reply");
495 ndmp_tape_read_reply reply;
499 reply.data_in.data_in_len = 0;
503 reply.error = NDMP_DEV_NOT_OPEN_ERR;
504 ndmp_send_reply(connection, (void *)&reply,
505 "sending tape_read reply");
509 reply.error = NDMP_NO_ERR;
510 ndmp_send_reply(connection, (void *)&reply,
511 "sending tape_read reply");
515 reply.error = NDMP_NO_MEM_ERR;
516 ndmp_send_reply(connection, (void *)&reply,
517 "sending tape_read reply");
521 unbuffered_read(session, buf, request->count, &reply);
523 ndmp_send_reply(connection, (void *) &reply, "sending tape_read reply");
544 ndmp_tape_execute_cdb_reply reply;
550 (void) memset((void *) &reply, 0, sizeof (reply));
553 reply.error = NDMP_DEV_NOT_OPEN_ERR;
554 ndmp_send_reply(connection, (void *) &reply,
555 "sending tape_execute_cdb reply");
608 ndmp_tape_get_state_reply_v3 reply;
616 reply.error = NDMP_DEV_NOT_OPEN_ERR;
617 ndmp_send_reply(connection, (void *) &reply,
618 "sending tape_get_state reply");
626 reply.error = NDMP_IO_ERR;
627 ndmp_send_reply(connection, (void *)&reply,
628 "sending tape_get_state reply");
639 reply.error = NDMP_IO_ERR;
640 ndmp_send_reply(connection, (void *)&reply,
641 "sending tape_get_state reply");
645 reply.flags = 0;
647 reply.file_num = mtstatus.mt_fileno;
648 reply.soft_errors = 0;
649 reply.block_size = dtp.bsize;
651 reply.blockno = mtstatus.mt_blkno;
653 reply.blockno = mtstatus.mt_blkno *
655 reply.total_space = long_long_to_quad(0); /* not supported */
656 reply.space_remain = long_long_to_quad(0); /* not supported */
657 reply.partition = 0; /* not supported */
659 reply.soft_errors = 0;
660 reply.total_space = long_long_to_quad(0LL);
661 reply.space_remain = long_long_to_quad(0LL);
663 reply.invalid = NDMP_TAPE_STATE_SOFT_ERRORS_INVALID |
670 reply.flags, reply.file_num, reply.block_size, reply.blockno);
672 reply.error = NDMP_NO_ERR;
673 ndmp_send_reply(connection, (void *) &reply,
674 "sending tape_get_state reply");
761 ndmp_tape_write_reply reply; ndmpd_session_t *session =
764 reply.count = 0;
768 reply.error = NDMP_DEV_NOT_OPEN_ERR;
769 ndmp_send_reply(connection, (void *) &reply,
770 "sending tape_write reply");
775 reply.error = NDMP_PERMISSION_ERR;
776 ndmp_send_reply(connection, (void *) &reply,
777 "sending tape_write reply");
781 reply.error = NDMP_NO_ERR;
782 ndmp_send_reply(connection, (void *) &reply,
783 "sending tape_write reply");
795 reply.error = NDMP_DEVICE_BUSY_ERR;
796 ndmp_send_reply(connection, (void *) &reply,
797 "sending tape_write reply");
806 reply.error = NDMP_IO_ERR;
809 reply.error = NDMP_EOM_ERR;
812 reply.count = n;
813 reply.error = NDMP_NO_ERR;
820 ndmp_send_reply(connection, (void *) &reply,
821 "sending tape_write reply");
848 ndmp_tape_read_reply reply;
853 reply.data_in.data_in_len = 0;
857 reply.error = NDMP_DEV_NOT_OPEN_ERR;
858 ndmp_send_reply(connection, (void *) &reply,
859 "sending tape_read reply");
863 reply.error = NDMP_NO_ERR;
864 ndmp_send_reply(connection, (void *) &reply,
865 "sending tape_read reply");
877 reply.error = NDMP_DEVICE_BUSY_ERR;
878 ndmp_send_reply(connection, (void *) &reply,
879 "sending tape_read reply");
884 reply.error = NDMP_NO_MEM_ERR;
885 ndmp_send_reply(connection, (void *) &reply,
886 "sending tape_read reply");
897 reply.error = NDMP_EOF_ERR;
905 reply.error = NDMP_EOM_ERR;
913 reply.error = NDMP_EOM_ERR;
916 reply.error = NDMP_IO_ERR;
921 reply.error = NDMP_EOM_ERR;
926 reply.error = NDMP_EOF_ERR;
930 reply.data_in.data_in_len = n;
931 reply.data_in.data_in_val = buf;
932 reply.error = NDMP_NO_ERR;
936 ndmp_send_reply(connection, (void *) &reply, "sending tape_read reply");
964 ndmp_tape_get_state_reply_v4 reply;
972 reply.error = NDMP_DEV_NOT_OPEN_ERR;
973 ndmp_send_reply(connection, (void *) &reply,
974 "sending tape_get_state reply");
987 reply.error = NDMP_IO_ERR;
988 ndmp_send_reply(connection, (void *)&reply,
989 "sending tape_get_state reply");
1000 reply.error = NDMP_IO_ERR;
1001 ndmp_send_reply(connection, (void *)&reply,
1002 "sending tape_get_state reply");
1006 reply.flags = NDMP_TAPE_NOREWIND;
1008 reply.file_num = mtstatus.mt_fileno;
1009 reply.soft_errors = 0;
1010 reply.block_size = dtp.bsize;
1013 reply.blockno = mtstatus.mt_blkno;
1015 reply.blockno = mtstatus.mt_blkno /
1018 reply.total_space = long_long_to_quad(0LL); /* not supported */
1019 reply.space_remain = long_long_to_quad(0LL); /* not supported */
1020 reply.soft_errors = 0;
1021 reply.unsupported = NDMP_TAPE_STATE_SOFT_ERRORS_INVALID |
1027 reply.flags, reply.file_num, reply.block_size, reply.blockno);
1029 reply.error = NDMP_NO_ERR;
1030 ndmp_send_reply(connection, (void *) &reply,
1031 "sending tape_get_state reply");
1049 ndmp_tape_close_reply reply;
1054 reply.error = NDMP_DEV_NOT_OPEN_ERR;
1055 ndmp_send_reply(connection, (void *) &reply,
1056 "sending tape_close reply");
1067 reply.error = NDMP_DEVICE_BUSY_ERR;
1068 ndmp_send_reply(connection, (void *) &reply,
1069 "sending tape_close reply");
1085 * Send a reply to the tape open message
1097 ndmp_tape_open_reply reply;
1099 reply.error = err;
1100 ndmp_send_reply(connection, (void *) &reply, "sending tape_open reply");
1112 * reply (output) - tape read reply message
1119 ndmp_tape_read_reply *reply)
1130 reply->error = NDMP_EOF_ERR;
1133 reply->error = NDMP_IO_ERR;
1138 reply->error = NDMP_EOF_ERR;
1155 reply->data_in.data_in_len = n;
1156 reply->data_in.data_in_val = buf;
1157 reply->error = NDMP_NO_ERR;
1341 ndmp_tape_close_reply reply;
1353 reply.error = NDMP_NO_ERR;
1354 ndmp_send_reply(connection, (void *) &reply,
1355 "sending tape_close reply");