Changeset 2104 in MondoRescue for branches/2.2.8/mondo/src/common


Ignore:
Timestamp:
Jan 6, 2009, 3:33:45 PM (17 years ago)
Author:
Bruno Cornec
Message:

Adds support of ntfs-3g as good format. Need guinea-pig to test that feature, especially with ntfsclone

Location:
branches/2.2.8/mondo/src/common
Files:
2 edited

Legend:

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

    r2101 r2104  
    10731073        }
    10741074        strip_spaces(good_formats);
    1075         strcat(good_formats, " swap lvm raid ntfs 7 "); // " ntfs 7 " -- um, cheating much? :)
     1075        strcat(good_formats, " swap lvm raid ntfs-3g ntfs 7 "); // " ntfs 7 " -- um, cheating much? :)
    10761076        if (strstr(good_formats, format_sz)) {
    10771077            retval = 1;
     
    22012201    strcpy(tmp,
    22022202           call_program_and_get_last_line_of_output
    2203            ("LANGUAGE=C df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));
     2203           ("LANGUAGE=C df -m -P -t nonfs,msdosfs,ntfs,ntfs-3g,smbfs,smb,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));
    22042204#else
    22052205    strcpy(tmp,
    22062206           call_program_and_get_last_line_of_output
    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;}'"));
     2207           ("LANGUAGE=C df -m -P -x nfs -x nfs4 -x vfat -x ntfs -x ntfs-3g -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;}'"));
    22082208#endif
    22092209
  • branches/2.2.8/mondo/src/common/libmondo-filelist.c

    r2100 r2104  
    16501650        log_msg(2, "include_paths = '%s'", include_paths);
    16511651        log_msg(1, "Calculating filelist");
    1652         asprintf(&tmp2, call_program_and_get_last_line_of_output("mount | grep -Ew 'ntfs|fat|vfat|dos' | awk '{print $3}'"));
     1652        asprintf(&tmp2, call_program_and_get_last_line_of_output("mount | grep -Ew 'ntfs|ntfs-3g|fat|vfat|dos' | awk '{print $3}'"));
    16531653        if (strlen(tmp2) < 1) {
    16541654            asprintf(&tmp1," ");
Note: See TracChangeset for help on using the changeset viewer.