Changeset 2361


Ignore:
Timestamp:
Sep 3, 2009, 1:54:25 PM (10 years ago)
Author:
bruno
Message:
  • Fix a case where the NFS dir in restore mode was mounted rw (linked to bug #291 could create a huge problem)
File:
1 edited

Legend:

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

    r2347 r2361  
    18031803            sprintf(command, "mkdir -p %s", bkpinfo->isodir);
    18041804            run_program_and_log_output(command, 5);
    1805             mr_asprintf(&tmp, "mount -t nfs -o nolock %s %s", bkpinfo->nfs_mount, bkpinfo->isodir);
     1805            if (bkpinfo->restore_data) {
     1806                mr_asprintf(&tmp, "mount -t nfs -o nolock,ro %s %s", bkpinfo->nfs_mount, bkpinfo->isodir);
     1807            else {
     1808                mr_asprintf(&tmp, "mount -t nfs -o nolock %s %s", bkpinfo->nfs_mount, bkpinfo->isodir);
     1809            }
    18061810            run_program_and_log_output(tmp, 3);
    18071811            mr_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.