Changeset 2187 in MondoRescue
- Timestamp:
- Apr 30, 2009, 6:00:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2177 r2187 2103 2103 char *exclude_these_devices; 2104 2104 char *exclude_these_directories; 2105 static char result_sz[ 512];2105 static char result_sz[1024]; 2106 2106 2107 2107 malloc_string(exclude_these_devices); 2108 2108 malloc_string(exclude_these_directories); 2109 strcpy(exclude_these_directories, 2110 call_program_and_get_last_line_of_output 2111 ("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;}'")); 2109 strcpy(exclude_these_directories,list_of_NFS_mounts_only()); 2112 2110 strcpy(exclude_these_devices, 2113 2111 call_program_and_get_last_line_of_output … … 2131 2129 char *list_of_NFS_mounts_only(void) 2132 2130 { 2133 char *exclude_these_devices;2134 2131 char *exclude_these_directories; 2135 2132 static char result_sz[512]; 2136 2133 2137 malloc_string(exclude_these_devices);2138 2134 malloc_string(exclude_these_directories); 2139 2135 strcpy(exclude_these_directories, 2140 2136 call_program_and_get_last_line_of_output 2141 2137 ("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;}'")); 2142 strcpy(exclude_these_devices,2143 call_program_and_get_last_line_of_output2144 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|nfs4|smbfs|cifs|afs|gfs|ocfs|ocfs2|mvfs|nsspool|nssvol) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2145 2138 sprintf(result_sz, "%s", exclude_these_directories); 2146 paranoid_free(exclude_these_devices);2147 2139 paranoid_free(exclude_these_directories); 2148 2140 return (result_sz);
Note:
See TracChangeset
for help on using the changeset viewer.