Print this page
4738 tape block number is set at wrong place
Reviewed by: Albert Lee <trisk@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
*** 761,770 ****
--- 761,772 ----
}
(void) mutex_lock(&nlp->nlp_mtx);
session->ns_mover.md_state = NDMP_MOVER_STATE_ACTIVE;
session->ns_mover.md_pause_reason = NDMP_MOVER_PAUSE_NA;
+ /* The tape has been likely exchanged, reset tape block counter */
+ session->ns_tape.td_record_count = 0;
(void) cond_broadcast(&nlp->nlp_cv);
(void) mutex_unlock(&nlp->nlp_mtx);
reply.error = NDMP_NO_ERR;
ndmp_send_reply(connection, (void *) &reply,