Changeset 3658


Ignore:
Timestamp:
May 3, 2017, 11:27:05 AM (4 months ago)
Author:
bruno
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)

Location:
branches/3.3
Files:
1 added
2 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);
  • branches/3.3/mondo/src/mondorestore/mondorestore.c

    r3653 r3658  
    28542854                    } else {
    28552855                        if (bkpinfo->netfs_user) {
    2856                             mr_asprintf(tmp, "mount %s@%s -o nolock,ro /tmp/isodir", bkpinfo->netfs_user,bkpinfo->netfs_mount);
     2856                            mr_asprintf(tmp, "mount -t %s %s@%s -o nolock,ro /tmp/isodir", bkpinfo->netfs_proto, bkpinfo->netfs_user,bkpinfo->netfs_mount);
    28572857                        } else {
    2858                             mr_asprintf(tmp, "mount %s -o nolock,ro /tmp/isodir", bkpinfo->netfs_mount);
     2858                            mr_asprintf(tmp, "mount -t %s %s -o nolock,ro /tmp/isodir", bkpinfo->netfs_proto, bkpinfo->netfs_mount);
    28592859                        }
    28602860                    }
Note: See TracChangeset for help on using the changeset viewer.