Ignore:
Timestamp:
Jun 17, 2009, 4:43:35 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Add support of user for NFS write and fixes #316
File:
1 edited

Legend:

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

    r2220 r2224  
    12831283    make_hole_for_dir(mountpoint);
    12841284
    1285 #ifndef __FreeBSD__
     1285#ifdef __FreeBSD__
    12861286    char *dev = NULL;
     1287#else
    12871288    char *options = NULL;
    12881289    mr_asprintf(&options, "ro");
     
    14691470{
    14701471    char *tmp = NULL;
    1471     char *tmp1 = NULL;
    14721472    char *sz_size;
    14731473    char *command;
     
    20532053    log_it("isodir = %s", bkpinfo->isodir);
    20542054    log_it("nfs_mount = '%s'", bkpinfo->nfs_mount);
     2055    if (bkpinfo->nfs_user != NULL) {
     2056        log_it("nfs_user = '%s'", bkpinfo->nfs_user);
     2057    }
    20552058#endif
    20562059
     
    21012104    static char result_sz[1024];
    21022105
    2103     mr_asprintf(exclude_these_directories,"%s",list_of_NFS_mounts_only());
    2104     mr_asprintf(exclude_these_devices,"%s",
     2106    mr_asprintf(&exclude_these_directories,"%s",list_of_NFS_mounts_only());
     2107    mr_asprintf(&exclude_these_devices,"%s",
    21052108           call_program_and_get_last_line_of_output
    21062109           ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|nfs4|smbfs|cifs|afs|gfs|ocfs|ocfs2|mvfs|nsspool|nsvol) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));
    2107     snprintf(result_sz, "%s %s", exclude_these_directories,
    2108             exclude_these_devices, 1023);
     2110    snprintf(result_sz, 1023, "%s %s", exclude_these_directories, exclude_these_devices);
    21092111    mr_free(exclude_these_devices);
    21102112    mr_free(exclude_these_directories);
     
    21292131           call_program_and_get_last_line_of_output
    21302132           ("mount -t coda,ncpfs,nfs,nfs4,smbfs,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));
    2131     snprintf(result_sz, "%s", exclude_these_directories, 511);
     2133    snprintf(result_sz, 511, "%s", exclude_these_directories);
    21322134    mr_free(exclude_these_directories);
    21332135    return (result_sz);
Note: See TracChangeset for help on using the changeset viewer.