Changeset 3137 in MondoRescue
- Timestamp:
- Jun 13, 2013, 6:37:19 AM (11 years ago)
- Location:
- branches/3.0/mondo/src/common
- Files:
-
- 2 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) { -
branches/3.0/mondo/src/common/mondostructures.h
r2769 r3137 192 192 * A type of file in the catalog of recent archives. 193 193 */ 194 typedef enum { other, ///< Some other kind of file. 194 typedef enum { 195 other, ///< Some other kind of file. 195 196 fileset, ///< An afioball (fileset), optionally compressed. 196 197 biggieslice ///< A slice of a biggiefile, optionally compressed. … … 202 203 typedef enum { 203 204 nuke = 0, /// Nuke mode 204 interactive, /// Interactive mode205 interactive, /// Interactive mode 205 206 compare, /// Compare mode 206 207 mbr, /// MBR mode
Note:
See TracChangeset
for help on using the changeset viewer.