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>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
          +++ new/usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
↓ open down ↓ 1126 lines elided ↑ open up ↑
1127 1127                                              "Local data connection terminated");
1128 1128                                          break;
1129 1129                                  }
1130 1130                          }
1131 1131                  }
1132 1132  
1133 1133                  (void) cond_wait(&nlp->nlp_cv, &nlp->nlp_mtx);
1134 1134          }
1135 1135          (void) mutex_unlock(&nlp->nlp_mtx);
1136 1136  
1137      -        if (session->ns_mover.md_state == NDMP_MOVER_STATE_ACTIVE) {
1138      -                session->ns_tape.td_record_count = 0;
1139      -                return (0);
1140      -        }
1141      -
1142      -        return (-1);
     1137 +        return ((session->ns_mover.md_state == NDMP_MOVER_STATE_ACTIVE) ?
     1138 +            0 : -1);
1143 1139  }
1144 1140  
1145 1141  /*
1146 1142   * is_buffer_erroneous
1147 1143   *
1148 1144   * Run a sanity check on the buffer
1149 1145   *
1150 1146   * returns:
1151 1147   *   TRUE: if the buffer seems to have error
1152 1148   *   FALSE: if the buffer is full and has valid data.
↓ open down ↓ 1460 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX