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-archive.c

    r1954 r1956  
    4949/*@unused@*/
    5050//static char cvsid[] = "$Id$";
     51//
     52extern char *get_non_rewind_dev(char *);
    5153
    5254/* *************************** external global vars ******************/
     
    6971/* Reference to global bkpinfo */
    7072extern struct s_bkpinfo *bkpinfo;
    71 
    7273
    7374
     
    540541    char *value;
    541542    char *bootdev;
     543    char *ntapedev = NULL;
    542544
    543545
     
    594596    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    595597        sprintf(tape_size_sz, "%ld", bkpinfo->media_size[1]);
     598        ntapedev = get_non_rewind_dev(bkpinfo->media_device);
     599        if ((bkpinfo->use_obdr) && (ntapedev != NULL)) {
     600            strncpy(bkpinfo->media_device,ntapedev,(size_t)(MAX_STR_LEN / 4));
     601        } else {
     602            if (ntapedev == NULL) {
     603                log_it("Not able to create OBDR - Restore will have to be done manually");
     604            }
     605        }
     606        paranoid_free(ntapedev);
    596607        strcpy(tape_device, bkpinfo->media_device);
    597608    } else {
Note: See TracChangeset for help on using the changeset viewer.