Changeset 2224 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-devices.c
- Timestamp:
- Jun 17, 2009, 4:43:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2220 r2224 1283 1283 make_hole_for_dir(mountpoint); 1284 1284 1285 #if ndef __FreeBSD__1285 #ifdef __FreeBSD__ 1286 1286 char *dev = NULL; 1287 #else 1287 1288 char *options = NULL; 1288 1289 mr_asprintf(&options, "ro"); … … 1469 1470 { 1470 1471 char *tmp = NULL; 1471 char *tmp1 = NULL;1472 1472 char *sz_size; 1473 1473 char *command; … … 2053 2053 log_it("isodir = %s", bkpinfo->isodir); 2054 2054 log_it("nfs_mount = '%s'", bkpinfo->nfs_mount); 2055 if (bkpinfo->nfs_user != NULL) { 2056 log_it("nfs_user = '%s'", bkpinfo->nfs_user); 2057 } 2055 2058 #endif 2056 2059 … … 2101 2104 static char result_sz[1024]; 2102 2105 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", 2105 2108 call_program_and_get_last_line_of_output 2106 2109 ("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); 2109 2111 mr_free(exclude_these_devices); 2110 2112 mr_free(exclude_these_directories); … … 2129 2131 call_program_and_get_last_line_of_output 2130 2132 ("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); 2132 2134 mr_free(exclude_these_directories); 2133 2135 return (result_sz);
Note:
See TracChangeset
for help on using the changeset viewer.