Changeset 1848


Ignore:
Timestamp:
Jan 4, 2008, 3:47:16 PM (11 years ago)
Author:
bruno
Message:

Never tries to eject a NFS media (report from Brian McKee?)

Location:
branches/2.2.5/mondo/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/libmondo-archive.c

    r1747 r1848  
    38833883    /*@ bool ******************************************************** */
    38843884    bool that_one_was_ok;
    3885     bool using_nfs;
    38863885    bool orig_vfy_flag_val;
    38873886
     
    39003899    }
    39013900
    3902     if (strlen(bkpinfo->nfs_mount) > 1) {
    3903         using_nfs = TRUE;
    3904     } else {
    3905         using_nfs = FALSE;
    3906     }
    39073901    log_msg(1, "OK, time to make %s #%d",
    39083902            media_descriptor_string(bkpinfo->backup_media_type),
     
    39953989        }
    39963990    }
    3997 /*
    3998   if (using_nfs)
    3999     {
    4000       sprintf(tmp,"mv -f %s %s/%s/", isofile, bkpinfo->isodir, bkpinfo->nfs_remote_dir);
    4001       if (run_program_and_log_output(tmp, FALSE))
    4002         { log_to_screen("Unable to move ISO to NFS dir"); }
    4003     }
    4004 */
    40053991    g_current_media_number++;
    40063992    if (g_current_media_number > MAX_NOOF_MEDIA) {
  • branches/2.2.5/mondo/src/common/libmondo-devices.c

    r1847 r1848  
    21292129
    21302130    case nfs:
     2131        /* Never try to eject a NFS device */
     2132        bkpinfo->please_dont_eject = TRUE;
     2133
    21312134        if (!bkpinfo->nfs_mount[0]) {
    21322135            strcpy(bkpinfo->nfs_mount,
  • branches/2.2.5/mondo/src/mondoarchive/mondo-cli.c

    r1784 r1848  
    661661    if (flag_set['n']) {
    662662        bkpinfo->backup_media_type = nfs;
     663        /* Never try to eject a NFS device */
     664        bkpinfo->please_dont_eject = TRUE;
    663665    }
    664666    if (flag_set['r']) {
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.c

    r1846 r1848  
    976976} else if (!strcmp(value, "nfs")) {
    977977    bkpinfo->backup_media_type = nfs;
     978    bkpinfo->please_dont_eject = TRUE;
    978979    if (read_cfg_var(cfg_file, "iso-prefix", value) == 0) {
    979980            strcpy(bkpinfo->prefix,value);
Note: See TracChangeset for help on using the changeset viewer.