Changeset 2918 in MondoRescue for branches/3.0/mondo


Ignore:
Timestamp:
Dec 20, 2011, 1:18:09 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Exclude /run similarly to /sys and /proc
Location:
branches/3.0/mondo/src/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/common/libmondo-filelist.c

    r2825 r2918  
    13821382#if linux
    13831383        // 2.6 has /sys as a proc-type thing -- must be excluded
    1384         mr_asprintf(&strtmp, "find '%s' -maxdepth %d -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o -fstype rpc_pipefs -prune -o -fstype none -prune -o %s -type d -print > %s 2> /dev/null", dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist);
     1384        mr_asprintf(&strtmp, "find '%s' -maxdepth %d -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype devtmpfs -prune -o -fstype proc -prune -o -fstype selinuxfs -prune -o -fstype securityfs -prune -o -fstype hugetlbfs -o -fstype cgroup -prune -prune -o -fstype mqueue -prune -o -fstype debugfs -prune -o -fstype sysfs -prune -o -fstype rpc_pipefs -prune -o -fstype none -prune -o %s -type d -print > %s 2> /dev/null", dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist);
    13851385#else
    13861386        // On BSD, for example, /sys is the kernel sources -- don't exclude
     
    16161616        paranoid_free(tmp1);
    16171617
    1618         mr_asprintf(&exclude_paths, MONDO_CACHE"|%s|%s|%s|.|..|"MNT_CDROM"|"MNT_FLOPPY"|/media|/tmp|/proc|/sys|/dev/shm|"MINDI_CACHE, tmp2, (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
     1618        mr_asprintf(&exclude_paths, MONDO_CACHE"|%s|%s|%s|.|..|"MNT_CDROM"|"MNT_FLOPPY"|/media|/tmp|/proc|/sys|/run|/dev/shm|"MINDI_CACHE, tmp2, (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
    16191619        if (excp != NULL) {
    16201620            mr_strcat(exclude_paths,"|%s",excp);
  • branches/3.0/mondo/src/common/libmondo-mountlist.c

    r2733 r2918  
    855855            !strcmp(mountlist->el[items].device, "/sys") ||
    856856            !strcmp(mountlist->el[items].device, "sys") ||
     857            !strcmp(mountlist->el[items].device, "/run") ||
     858            !strcmp(mountlist->el[items].device, "run") ||
    857859            !strcmp(mountlist->el[items].device, "/devpts") ||
    858860            !strcmp(mountlist->el[items].device, "devpts")
Note: See TracChangeset for help on using the changeset viewer.