summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
da751ca)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
struct fio_file *f;
int err, need_create, can_extend;
unsigned long long total_file_size;
struct fio_file *f;
int err, need_create, can_extend;
unsigned long long total_file_size;
+ unsigned int i, new_files;
total_file_size = td->total_file_size;
for_each_file(td, f, i) {
unsigned long long s;
total_file_size = td->total_file_size;
for_each_file(td, f, i) {
unsigned long long s;
s = total_file_size;
total_file_size -= s;
s = total_file_size;
total_file_size -= s;
if (f->flags & FIO_FILE_EXISTS)
continue;
if (f->flags & FIO_FILE_EXISTS)
continue;
- f->file_size = total_file_size / td->nr_normal_files;
+ f->file_size = total_file_size / new_files;
file_there = !file_ok(td, f);
file_there = !file_ok(td, f);
temp_stall_ts = 1;
fprintf(f_out, "%s: Laying out IO file(s) (%u x %LuMiB == %LuMiB)\n",
temp_stall_ts = 1;
fprintf(f_out, "%s: Laying out IO file(s) (%u x %LuMiB == %LuMiB)\n",
- td->name, td->nr_normal_files,
- (td->total_file_size >> 20) / td->nr_normal_files,
- td->total_file_size >> 20);
+ td->name, new_files,
+ (total_file_size >> 20) / new_files,
+ total_file_size >> 20);
err = 0;
for_each_file(td, f, i) {
err = 0;
for_each_file(td, f, i) {