Ignore:
Timestamp:
Jun 2, 2008, 10:49:01 AM (16 years ago)
Author:
Bruno Cornec
Message:

svn merge -r 1938:1976 $SVN_M/branches/2.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-devices.c

    r1939 r1977  
    17491749
    17501750    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
    17521757            if ((fin = fopen(bkpinfo->media_device, "r"))) {
    17531758                paranoid_fclose(fin);
     
    17951800        bkpinfo->media_size = 0L;
    17961801        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 ?");
    17971804        if (archiving_to_media) {
    17981805            if ((bkpinfo->compression_level =
     
    21962203    strcpy(exclude_these_directories,
    21972204           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;}'"));
    21992206    strcpy(exclude_these_devices,
    22002207           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;}'"));
    22022209    sprintf(result_sz, "%s", exclude_these_directories);
    22032210    mr_free(exclude_these_devices);
     
    22272234    mr_asprintf(&tmp,
    22282235           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;}'"));
    22302237#else
    22312238    mr_asprintf(&tmp,
    22322239           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;}'"));
    22342241#endif
    22352242
Note: See TracChangeset for help on using the changeset viewer.