summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1315a68)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
int err, need_create, can_extend;
unsigned int i;
int err, need_create, can_extend;
unsigned int i;
- for_each_file(td, f, i)
- f->file_size = td->total_file_size / td->nr_files;
+ for_each_file(td, f, i) {
+ if (f->filetype != FIO_TYPE_FILE)
+ continue;
+
+ f->file_size = td->total_file_size / td->nr_normal_files;
+ f->file_offset = td->start_offset;
+ }
/*
* unless specifically asked for overwrite, let normal io extend it
/*
* unless specifically asked for overwrite, let normal io extend it
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_uniq_files,
- (td->total_file_size >> 20) / td->nr_uniq_files,
+ td->name, td->nr_normal_files,
+ (td->total_file_size >> 20) / td->nr_normal_files,
td->total_file_size >> 20);
err = 0;
td->total_file_size >> 20);
err = 0;
get_file_type(f);
td->open_files++;
get_file_type(f);
td->open_files++;
- td->nr_uniq_files = td->open_files;
+ if (f->filetype == FIO_TYPE_FILE)
+ td->nr_normal_files++;
}
void get_file(struct fio_file *f)
}
void get_file(struct fio_file *f)
struct fio_file *files;
unsigned int nr_files;
unsigned int nr_open_files;
struct fio_file *files;
unsigned int nr_files;
unsigned int nr_open_files;
- unsigned int nr_uniq_files;
+ unsigned int nr_normal_files;
union {
unsigned int next_file;
os_random_state_t next_file_state;
union {
unsigned int next_file;
os_random_state_t next_file_state;
sprintf(fname, "%s/%s", td->directory, f->file_name);
f->file_name = strdup(fname);
}
sprintf(fname, "%s/%s", td->directory, f->file_name);
f->file_name = strdup(fname);
}
-
- f->file_size = td->total_file_size / td->nr_files;
- f->file_offset = td->start_offset;
}
td->mutex = fio_sem_init(0);
}
td->mutex = fio_sem_init(0);
struct thread_data *td = data;
char *fname, *str, *p;
struct thread_data *td = data;
char *fname, *str, *p;
+ if (!td->filename)
+ td->nr_files = 0;
+
p = str = strdup(input);
strip_blank_front(&str);
p = str = strdup(input);
strip_blank_front(&str);