Changeset 3658 in MondoRescue for branches/3.3/mondo/src/common/libmondo-cli.c


Ignore:
Timestamp:
May 3, 2017, 11:27:05 AM (4 years ago)
Author:
Bruno Cornec
Message:

Improve nfs version support by allowing usage of nfs4 e.g. as a parameter which will also used at restore time (for cases where nfs3 is tryed by default and doesn't work)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-cli.c

    r3628 r3658  
    484484                    mr_asprintf(tmp1, "mount -t cifs %s -o user=%s", bkpinfo->netfs_mount, bkpinfo->netfs_user);
    485485                } else if (strstr(bkpinfo->netfs_proto, "nfs")) {
    486                     mr_asprintf(tmp1, "mount %s@%s", bkpinfo->netfs_user, bkpinfo->netfs_mount);
     486                    mr_asprintf(tmp1, "mount -t %s %s@%s", bkpinfo->netfs_proto, bkpinfo->netfs_user, bkpinfo->netfs_mount);
    487487                } else {
    488488                    log_to_screen("Protocol %s not supported yet for network backups.\n", bkpinfo->netfs_proto);
     
    495495                    mr_asprintf(tmp1, "mount -t cifs %s", bkpinfo->netfs_mount);
    496496                } else if (strstr(bkpinfo->netfs_proto, "nfs")) {
    497                     mr_asprintf(tmp1, "mount %s", bkpinfo->netfs_mount);
     497                    mr_asprintf(tmp1, "mount -t %s %s", bkpinfo->netfs_proto, bkpinfo->netfs_mount);
    498498                } else {
    499499                    log_to_screen("Protocol %s not supported yet for network backups.\n", bkpinfo->netfs_proto);
Note: See TracChangeset for help on using the changeset viewer.