fio_file_clear_extend(f);
if (!td->o.fill_device) {
old_len = f->real_file_size;
- extend_len = f->io_size + f->file_offset - old_len;
+ extend_len = f->io_size + f->file_offset -
+ old_len;
}
f->real_file_size = (f->io_size + f->file_offset);
err = extend_file(td, f);
log_err("fio: smalloc OOM\n");
assert(0);
}
-
+
f->fd = -1;
if (td->files_size <= td->files_index) {
log_err("fio: smalloc OOM\n");
assert(0);
}
-
+
get_file_type(f);
switch (td->o.file_lock_mode) {
assert(0);
}
__f->fd = -1;
-
+
if (f->file_name) {
__f->file_name = smalloc_strdup(f->file_name);
if (!__f->file_name) {
log_err("fio: smalloc OOM\n");
assert(0);
}
-
+
__f->filetype = f->filetype;
}