Changeset 1488 in MondoRescue for branches/2.2.4/mondo/src/common/libmondo-devices.c
- Timestamp:
- Jun 6, 2007, 1:30:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.4/mondo/src/common/libmondo-devices.c
r1451 r1488 2421 2421 strcpy(exclude_these_directories, 2422 2422 call_program_and_get_last_line_of_output 2423 ("mount -t coda,ncpfs,nfs,smbfs,cifs,afs, mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));2423 ("mount -t coda,ncpfs,nfs,smbfs,cifs,afs,ocfs,ocfs2,mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'")); 2424 2424 strcpy(exclude_these_devices, 2425 2425 call_program_and_get_last_line_of_output 2426 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs| mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2426 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|afs|ocfs|ocfs2|mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'")); 2427 2427 sprintf(result_sz, "%s %s", exclude_these_directories, 2428 2428 exclude_these_devices); … … 2451 2451 strcpy(exclude_these_directories, 2452 2452 call_program_and_get_last_line_of_output 2453 ("mount -t coda,ncpfs,nfs,smbfs,cifs,afs, mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));2453 ("mount -t coda,ncpfs,nfs,smbfs,cifs,afs,ocfs,ocfs2,mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'")); 2454 2454 strcpy(exclude_these_devices, 2455 2455 call_program_and_get_last_line_of_output 2456 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs| mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2456 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|afs|ocfs|ocfs2|mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'")); 2457 2457 sprintf(result_sz, "%s", exclude_these_directories); 2458 2458 paranoid_free(exclude_these_devices); … … 2513 2513 strcpy(tmp, 2514 2514 call_program_and_get_last_line_of_output 2515 ("df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,afs, mvfs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));2515 ("df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,afs,ocfs,ocfs2,mvfs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'")); 2516 2516 #else 2517 2517 strcpy(tmp, 2518 2518 call_program_and_get_last_line_of_output 2519 ("df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -x afs -x mvfs | sed 's/ /devdev/' | tr -s '\t' ' ' | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));2519 ("df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -x afs -x ocfs -x ocfs2 -x mvfs | sed 's/ /devdev/' | tr -s '\t' ' ' | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'")); 2520 2520 #endif 2521 2521
Note:
See TracChangeset
for help on using the changeset viewer.