Ignore:
Timestamp:
Feb 18, 2016, 3:11:46 AM (8 years ago)
Author:
Bruno Cornec
Message:
  • Improve wipe scratch by calling rm on files instead of find which has issues in this context
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-archive.c

    r3514 r3516  
    29562956
    29572957    mr_asprintf(dir, "%s/archives", d);
    2958     mr_asprintf(tmp, "find %s -name '*.afio.*' -o -name '*.star.*' -exec rm -f '{}' \\;", dir);
     2958    mr_asprintf(tmp, "rm -f %s/*.afio.* %s/*.star.*", dir, dir);
    29592959    run_program_and_log_output(tmp, FALSE);
    29602960    mr_free(tmp);
    2961     mr_asprintf(tmp, "find %s -name '*list.[0-9]*' -exec rm -f '{}' \\;", dir);
     2961    mr_asprintf(tmp, "rm -f %s/*list.[0-9]* %s/slice*", dir, dir);
    29622962    run_program_and_log_output(tmp, FALSE);
    29632963    mr_free(tmp);
    2964     mr_asprintf(tmp, "find %s -name 'slice*' -exec rm -f '{}' \\;", dir);
    2965     run_program_and_log_output(tmp, FALSE);
    2966     mr_free(tmp);
    2967     mr_asprintf(tmp, "rm -f %s/cklist*", dir);
    2968     run_program_and_log_output(tmp, FALSE);
    2969     mr_free(tmp);
    2970     mr_asprintf(tmp, "rm -f %s/zero", dir);
     2964    mr_asprintf(tmp, "rm -f %s/cklist* %s/zero", dir, dir);
    29712965    run_program_and_log_output(tmp, FALSE);
    29722966    mr_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.