*/
if (need_extend) {
temp_stall_ts = 1;
- log_info("%s: Laying out IO file(s) (%u file(s) / %LuMiB)\n",
- td->o.name, need_extend, extend_size >> 20);
+ if (!terse_output)
+ log_info("%s: Laying out IO file(s) (%u file(s) /"
+ " %LuMiB)\n", td->o.name, need_extend,
+ extend_size >> 20);
for_each_file(td, f, i) {
unsigned long long old_len, extend_len;
}
td_io_close_file(td, f);
+ remove_file_hash(f);
sfree(f->file_name);
f->file_name = NULL;
dprint(FD_FILE, "add file %s\n", fname);
f = smalloc(sizeof(*f));
+ if (!f) {
+ log_err("fio: smalloc OOM\n");
+ assert(0);
+ }
+
f->fd = -1;
dprint(FD_FILE, "resize file array to %d files\n", cur_files + 1);
sprintf(file_name + len, "%s", fname);
f->file_name = smalloc_strdup(file_name);
-
+ if (!f->file_name) {
+ log_err("fio: smalloc OOM\n");
+ assert(0);
+ }
+
get_file_type(f);
switch (td->o.file_lock_mode) {
struct fio_file *__f;
__f = smalloc(sizeof(*__f));
-
+ if (!__f) {
+ log_err("fio: smalloc OOM\n");
+ assert(0);
+ }
+
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;
}