Ignore:
Timestamp:
May 27, 2008, 6:23:02 PM (11 years ago)
Author:
bruno
Message:

Use non-rewinding tape name earlier to pass it to mindi so that at restore time we have the right device name for OBDR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.6/mondo/src/common/libmondo-stream.c

    r1955 r1956  
    910910int openout_tape() {
    911911
    912 char *ntapedev = NULL;
    913 
    914912g_current_media_number = 1;
    915913if (g_tape_stream) {
     
    923921g_tape_posK = 0;
    924922
    925 ntapedev = get_non_rewind_dev(bkpinfo->media_device);
    926 if ((bkpinfo->use_obdr) && (ntapedev != NULL)) {
    927     strncpy(bkpinfo->media_device,ntapedev,(size_t)(MAX_STR_LEN / 4));
     923if (bkpinfo->use_obdr) {
    928924    create_obdr();
    929925} else {
    930     if (ntapedev == NULL) {
    931         log_it("Not able to create OBDR - Restore will have to be done manually");
    932     }
    933926    set_tape_block_size_with_mt(bkpinfo->internal_tape_block_size);
    934927}
    935 paranoid_free(ntapedev);
    936928log_it("Opening OUT tape");
    937929if (!
Note: See TracChangeset for help on using the changeset viewer.