Ignore:
Timestamp:
Jun 13, 2013, 6:37:24 AM (11 years ago)
Author:
Bruno Cornec
Message:

r5337@localhost: bruno | 2013-06-13 01:56:06 +0200

  • Attempt to realize #700 by adding a CLI parameter to modify the biggie file size limit. By default 64 MB.
  • Also with previous commit, fixes #700 by using blocks, and adapting autoconf to use it as well.
File:
1 edited

Legend:

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

    r3137 r3138  
    3232extern char *MONDO_LOGFILE;
    3333
     34extern long g_max_biggie_size;
     35
    3436/* Reference to global bkpinfo */
    3537extern struct s_bkpinfo *bkpinfo;
     
    199201    long lino = 0;
    200202    // A big file has more than 64 MB of real content
    201     long max_sane_size_for_a_file = 64L * 1024L;
    202203    long curr_set_size;
    203204    long noof_lines;
     
    274275            siz = (long) ((buf.st_blocks*512) >> 10);
    275276        }
    276         if (siz > max_sane_size_for_a_file) {
     277        if (siz > g_max_biggie_size) {
    277278            log_msg(10, "Adding %s to big files\n", incoming);
    278279            fprintf(fbig, "%s\n", incoming);
Note: See TracChangeset for help on using the changeset viewer.