Changeset 3137 in MondoRescue for branches/3.0/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Jun 13, 2013, 6:37:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/common/libmondo-filelist.c
r3129 r3137 198 198 /*@ long ****************************************/ 199 199 long lino = 0; 200 long max_sane_size_for_a_file; 200 // A big file has more than 64 MB of real content 201 long max_sane_size_for_a_file = 64L * 1024L; 201 202 long curr_set_size; 202 203 long noof_lines; … … 226 227 assert_string_is_neither_NULL_nor_zerolength(outdir); 227 228 assert(maxsetsizeK > 0); 228 229 max_sane_size_for_a_file = 64L * 1024L;230 // max_sane_size_for_a_file = maxsetsizeK*2;231 // if (max_sane_size_for_a_file > 32*1024)232 // { max_sane_size_for_a_file = 32*1024; }233 229 234 230 log_it("filelist=%s;", filelist); … … 274 270 siz = 0; 275 271 } else { 276 siz = (long) (buf.st_size >> 10); 272 // blocks are 512 bytes long - cf man 2 stat - Pass to the next unit (kB => MB e.g.) 273 // use blocks instead of size to allow sparse file correct handling as much as possible 274 siz = (long) ((buf.st_blocks*512) >> 10); 277 275 } 278 276 if (siz > max_sane_size_for_a_file) {
Note:
See TracChangeset
for help on using the changeset viewer.