Ignore:
Timestamp:
Sep 23, 2006, 2:41:00 PM (19 years ago)
Author:
andree
Message:

AFS support tweaking:

  • don't scan fstab for AFS - AFS volumes don't appear in fstab;
  • don't exclude AFS volumes per se in open_and_list_dir(), rather don't scan any directories that have been excluded - can generally improve scan times if '-N' or '-E' is used, i.e. not AFS specific (but required for AFS!).
File:
1 edited

Legend:

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

    r804 r820  
    24362436    strcpy(exclude_these_devices,
    24372437           call_program_and_get_last_line_of_output
    2438            ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|afs|mvfs) )' | 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;}'"));
    24392439    sprintf(result_sz, "%s %s", exclude_these_directories,
    24402440            exclude_these_devices);
     
    24662466    strcpy(exclude_these_devices,
    24672467           call_program_and_get_last_line_of_output
    2468            ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|afs|mvfs) )' | 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;}'"));
    24692469    sprintf(result_sz, "%s", exclude_these_directories);
    24702470    paranoid_free(exclude_these_devices);
Note: See TracChangeset for help on using the changeset viewer.