Changeset e7f9a09 in mainline for uspace/app/hbench/fs/dirread.c
- Timestamp:
- 2019-01-21T13:20:31Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d17cf8c
- Parents:
- 94ebebf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hbench/fs/dirread.c
r94ebebf re7f9a09 44 44 * that the corresponding blocks would be cached after first run. 45 45 */ 46 static bool runner(benchmeter_t *meter, uint64_t size, 47 char *error, size_t error_size) 46 static bool runner(bench_run_t *run, uint64_t size) 48 47 { 49 48 const char *path = bench_param_get("dirname", "/"); 50 49 51 bench meter_start(meter);50 bench_run_start(run); 52 51 for (uint64_t i = 0; i < size; i++) { 53 52 DIR *dir = opendir(path); 54 53 if (dir == NULL) { 55 snprintf(error, error_size, "failed to open %s for reading: %s",54 return bench_run_fail(run, "failed to open %s for reading: %s", 56 55 path, str_error(errno)); 57 return false;58 56 } 59 57 … … 65 63 closedir(dir); 66 64 } 67 bench meter_stop(meter);65 bench_run_stop(run); 68 66 69 67 return true;
Note:
See TracChangeset
for help on using the changeset viewer.