Changeset 808eeef for libwandio/wandio.c
- Timestamp:
- 05/15/13 10:57:59 (9 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 8a7d4b5
- Parents:
- d57ae6f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libwandio/wandio.c
r0acfd1e r808eeef 55 55 int force_directio_write = 0; 56 56 int force_directio_read = 0; 57 int use_autodetect = 1; 57 58 unsigned int use_threads = -1; 58 59 unsigned int max_buffers = 50; … … 65 66 * directwrite -- bypass the diskcache on write 66 67 * directread -- bypass the diskcache on read 68 * noautodetect -- disable autodetection of file compression, assume all files 69 * are uncompressed 67 70 * nothreads -- Don't use threads 68 71 * threads=n -- Use a maximum of 'n' threads for thread farms … … 82 85 else if (strcmp(option,"nothreads") == 0) 83 86 use_threads = 0; 87 else if (strcmp(option,"noautodetect") == 0) 88 use_autodetect = 0; 84 89 else if (strncmp(option,"threads=",8) == 0) 85 90 use_threads = atoi(option+8); … … 127 132 static io_t *create_io_reader(const char *filename, int autodetect) 128 133 { 129 parse_env();130 134 131 135 /* Use a peeking reader to look at the start of the trace file and … … 191 195 192 196 DLLEXPORT io_t *wandio_create(const char *filename) { 193 return create_io_reader(filename, 1); 197 parse_env(); 198 return create_io_reader(filename, use_autodetect); 194 199 } 195 200 196 201 DLLEXPORT io_t *wandio_create_uncompressed(const char *filename) { 202 parse_env(); 197 203 return create_io_reader(filename, 0); 198 204 }
Note: See TracChangeset
for help on using the changeset viewer.