Changeset 2101 in MondoRescue for branches/2.2.8/mondo
- Timestamp:
- Dec 24, 2008, 1:17:37 AM (16 years ago)
- Location:
- branches/2.2.8/mondo/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/common/libmondo-devices.c
r2071 r2101 2109 2109 strcpy(exclude_these_directories, 2110 2110 call_program_and_get_last_line_of_output 2111 ("mount -t coda,ncpfs,nfs, smbfs,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));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;}'")); 2112 2112 strcpy(exclude_these_devices, 2113 2113 call_program_and_get_last_line_of_output 2114 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs| smbfs|cifs|afs|gfs|ocfs|ocfs2|mvfs|nsspool|nsvol) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2114 ("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;}'")); 2115 2115 sprintf(result_sz, "%s %s", exclude_these_directories, 2116 2116 exclude_these_devices); … … 2139 2139 strcpy(exclude_these_directories, 2140 2140 call_program_and_get_last_line_of_output 2141 ("mount -t coda,ncpfs,nfs, smbfs,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));2141 ("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 2142 strcpy(exclude_these_devices, 2143 2143 call_program_and_get_last_line_of_output 2144 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs| smbfs|cifs|afs|gfs|ocfs|ocfs2|mvfs|nsspool|nssvol) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2144 ("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 2145 sprintf(result_sz, "%s", exclude_these_directories); 2146 2146 paranoid_free(exclude_these_devices); … … 2205 2205 strcpy(tmp, 2206 2206 call_program_and_get_last_line_of_output 2207 ("LANGUAGE=C df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -x afs -x gfs -x ocfs -x ocfs2 -x mvfs -x nsspool -x nssvol| 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;}'"));2207 ("LANGUAGE=C df -m -P -x nfs -x nfs4 -x vfat -x ntfs -x smbfs -x smb -x cifs -x afs -x gfs -x ocfs -x ocfs2 -x mvfs -x nsspool -x nssvol| 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;}'")); 2208 2208 #endif 2209 2209 -
branches/2.2.8/mondo/src/include/my-stuff.h
r2087 r2101 322 322 #define DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE "/dev/md" 323 323 #define RAID_DEVICE_STUB DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE 324 #define SANE_FORMATS "swap image vfat ext2 ext3 ext4 xfs vfs jfs reiserfs vmfs dos minix coda nfs n tfs hpfs raid lvm cifs ocfs ocfs2"324 #define SANE_FORMATS "swap image vfat ext2 ext3 ext4 xfs vfs jfs reiserfs vmfs dos minix coda nfs nfs4 ntfs hpfs raid lvm cifs ocfs ocfs2" 325 325 #define ALT_TAPE "/dev/ht0" 326 326 #define MKE2FS_OR_NEWFS "mke2fs"
Note:
See TracChangeset
for help on using the changeset viewer.