"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-fiemap.c" between
stress-ng-0.12.09.tar.xz and stress-ng-0.12.10.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-fiemap.c  (stress-ng-0.12.09.tar.xz):stress-fiemap.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 252 skipping to change at line 252
/* /*
* stress_fiemap * stress_fiemap
* stress fiemap IOCTL * stress fiemap IOCTL
*/ */
static int stress_fiemap(const stress_args_t *args) static int stress_fiemap(const stress_args_t *args)
{ {
pid_t pids[MAX_FIEMAP_PROCS]; pid_t pids[MAX_FIEMAP_PROCS];
int ret, fd, rc = EXIT_FAILURE, status; int ret, fd, rc = EXIT_FAILURE, status;
char filename[PATH_MAX]; char filename[PATH_MAX];
size_t i, n; size_t i, n;
const size_t counters_sz = sizeof(uint64_t) * MAX_FIEMAP_PROCS;
uint64_t *counters; uint64_t *counters;
const size_t counters_sz = sizeof(*counters) * MAX_FIEMAP_PROCS;
uint64_t fiemap_bytes = DEFAULT_FIEMAP_SIZE; uint64_t fiemap_bytes = DEFAULT_FIEMAP_SIZE;
struct fiemap fiemap; struct fiemap fiemap;
if (!stress_get_setting("fiemap-bytes", &fiemap_bytes)) { if (!stress_get_setting("fiemap-bytes", &fiemap_bytes)) {
if (g_opt_flags & OPT_FLAGS_MAXIMIZE) if (g_opt_flags & OPT_FLAGS_MAXIMIZE)
fiemap_bytes = MAXIMIZED_FILE_SIZE; fiemap_bytes = MAXIMIZED_FILE_SIZE;
if (g_opt_flags & OPT_FLAGS_MINIMIZE) if (g_opt_flags & OPT_FLAGS_MINIMIZE)
fiemap_bytes = MIN_FIEMAP_SIZE; fiemap_bytes = MIN_FIEMAP_SIZE;
} }
fiemap_bytes /= args->num_instances; fiemap_bytes /= args->num_instances;
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)