- Timestamp:
- Jul 22, 2006, 1:59:51 AM (19 years ago)
- Location:
- branches/stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-devices.c
r694 r702 2433 2433 strcpy(exclude_these_directories, 2434 2434 call_program_and_get_last_line_of_output 2435 ("mount -t coda,ncpfs,nfs,smbfs,cifs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));2435 ("mount -t coda,ncpfs,nfs,smbfs,cifs,mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'")); 2436 2436 strcpy(exclude_these_devices, 2437 2437 call_program_and_get_last_line_of_output 2438 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs ) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2438 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'")); 2439 2439 sprintf(result_sz, "%s %s", exclude_these_directories, 2440 2440 exclude_these_devices); … … 2463 2463 strcpy(exclude_these_directories, 2464 2464 call_program_and_get_last_line_of_output 2465 ("mount -t coda,ncpfs,nfs,smbfs,cifs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));2465 ("mount -t coda,ncpfs,nfs,smbfs,cifs,mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'")); 2466 2466 strcpy(exclude_these_devices, 2467 2467 call_program_and_get_last_line_of_output 2468 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs ) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2468 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'")); 2469 2469 sprintf(result_sz, "%s", exclude_these_directories); 2470 2470 paranoid_free(exclude_these_devices); … … 2525 2525 strcpy(tmp, 2526 2526 call_program_and_get_last_line_of_output 2527 ("df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));2527 ("df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,mvfs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'")); 2528 2528 #else 2529 2529 strcpy(tmp, 2530 2530 call_program_and_get_last_line_of_output 2531 ("df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs | 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;}'"));2531 ("df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -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;}'")); 2532 2532 #endif 2533 2533 -
branches/stable/mondo/mondo/common/libmondo-filelist.c
r681 r702 1525 1525 // 2.6 has /sys as a proc-type thing -- must be excluded 1526 1526 sprintf(tmp, 1527 "find %s -maxdepth %d - path /proc -prune -o -path /sys -prune -o -path /dev/shm -prune -o -path /media/floppy -prune -o -type d -a -print > %s 2> /dev/null",1527 "find %s -maxdepth %d -fstype mvfs -prune -o -path /proc -prune -o -path /sys -prune -o -path /dev/shm -prune -o -path /media/floppy -prune -o -type d -a -print > %s 2> /dev/null", 1528 1528 dir, MAX_SKEL_DEPTH, g_skeleton_filelist); 1529 1529 #else 1530 1530 // On BSD, for example, /sys is the kernel sources -- don't exclude 1531 1531 sprintf(tmp, 1532 "find %s -maxdepth %d - path /proc -prune -o -type d -a -print > %s 2> /dev/null",1532 "find %s -maxdepth %d -fstype mvfs -prune -o -path /proc -prune -o -type d -a -print > %s 2> /dev/null", 1533 1533 dir, MAX_SKEL_DEPTH, g_skeleton_filelist); 1534 1534 #endif
Note:
See TracChangeset
for help on using the changeset viewer.