Ignore:
Timestamp:
Sep 3, 2009, 2:48:51 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • More verbose at installation of additional tools
  • Fix a case where the NFS dir in restore mode was mounted rw (linked to bug #291 could create a huge problem)

(backport from 2.2.9)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-devices.c

    r2357 r2364  
    17301730            mr_free(command);
    17311731
    1732             mr_asprintf(tmp, "mount -t nfs -o nolock %s %s", bkpinfo->nfs_mount, bkpinfo->isodir);
     1732            if (bkpinfo->restore_data) {
     1733                mr_asprintf(tmp, "mount -t nfs -o nolock,ro %s %s", bkpinfo->nfs_mount, bkpinfo->isodir);
     1734            else {
     1735                mr_asprintf(tmp, "mount -t nfs -o nolock %s %s", bkpinfo->nfs_mount, bkpinfo->isodir);
     1736            }
    17331737            run_program_and_log_output(tmp, 3);
    17341738            mr_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.