Changeset 2403 in MondoRescue


Ignore:
Timestamp:
Sep 16, 2009, 4:32:03 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • At restore time read the netfs protocol in the conf file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c

    r2388 r2403  
    809809    bkpinfo->backup_media_type = netfs;
    810810    bkpinfo->please_dont_eject = TRUE;
     811    if (read_cfg_var(cfg_file, "netfs-proto", value) == 0) {
     812        mr_asprintf(&(bkpinfo->netfs_proto),"%s", value);
     813    } else {
     814        /* For compatibility, force protocol in old nfs case to be transparent */
     815        mr_asprintf(&(bkpinfo->netfs_proto), "nfs");
     816    }
    811817    if (read_cfg_var(cfg_file, "iso-prefix", value) == 0) {
    812818            strcpy(bkpinfo->prefix,value);
     
    823829        }
    824830        strcpy(bkpinfo->prefix,envtmp1);
    825     }
    826     /* For compatibility, force protocol in old nfs case to be transparent */
    827     if (!strcmp(value, "nfs")) {
    828         mr_free(bkpinfo->netfs_proto);
    829         mr_asprintf(&(bkpinfo->netfs_proto), "nfs");
    830831    }
    831832
Note: See TracChangeset for help on using the changeset viewer.