Changeset 1977 in MondoRescue for branches/stable/mondo/src/common/libmondo-devices.c
- Timestamp:
- Jun 2, 2008, 10:49:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-devices.c
r1939 r1977 1749 1749 1750 1750 case tape: 1751 if (bkpinfo->media_device) { 1751 if ((!bkpinfo->restore_mode) && (find_tape_device_and_size(bkpinfo->media_device, sz_size))) { 1752 mr_msg(3, "Ok, using vanilla scsi tape."); 1753 mr_free(bkpinfo->media_device); 1754 mr_asprintf(&tmp,VANILLA_SCSI_TAPE); 1755 bkpinfo->media_device = tmp; 1756 1752 1757 if ((fin = fopen(bkpinfo->media_device, "r"))) { 1753 1758 paranoid_fclose(fin); … … 1795 1800 bkpinfo->media_size = 0L; 1796 1801 mr_msg(4, "media_size = %ld", bkpinfo->media_size); 1802 bkpinfo->use_obdr = ask_me_yes_or_no 1803 ("Do you want to activate OBDR support for your tapes ?"); 1797 1804 if (archiving_to_media) { 1798 1805 if ((bkpinfo->compression_level = … … 2196 2203 strcpy(exclude_these_directories, 2197 2204 call_program_and_get_last_line_of_output 2198 ("mount -t coda,ncpfs,nfs,smbfs,cifs,afs, ocfs,ocfs2,mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));2205 ("mount -t coda,ncpfs,nfs,smbfs,cifs,afs,gfs,ocfs,ocfs2,mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'")); 2199 2206 strcpy(exclude_these_devices, 2200 2207 call_program_and_get_last_line_of_output 2201 ("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;}'"));2208 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|afs|gfs|ocfs|ocfs2|mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'")); 2202 2209 sprintf(result_sz, "%s", exclude_these_directories); 2203 2210 mr_free(exclude_these_devices); … … 2227 2234 mr_asprintf(&tmp, 2228 2235 call_program_and_get_last_line_of_output 2229 ("LANGUAGE=C 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;}'"));2236 ("LANGUAGE=C df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,afs,gfs,ocfs,ocfs2,mvfs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'")); 2230 2237 #else 2231 2238 mr_asprintf(&tmp, 2232 2239 call_program_and_get_last_line_of_output 2233 ("LANGUAGE=C 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;}'"));2240 ("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 | 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;}'")); 2234 2241 #endif 2235 2242
Note:
See TracChangeset
for help on using the changeset viewer.