From: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> In some cases it's set to -1, but on others it's not, while the existing code (e.g. get_fs_free_counts(), setup_files(), etc) seem to expect ->real_file_size to be -1 in case of any error. Signed-off-by: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> --- filesetup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/filesetup.c b/filesetup.c index eb28826..3fa8b32 100644 --- a/filesetup.c +++ b/filesetup.c @@ -375,10 +375,12 @@ static int get_file_size(struct thread_data *td, struct fio_file *f) else if (f->filetype == FIO_TYPE_CHAR) ret = char_size(td, f); else - f->real_file_size = -1; + f->real_file_size = -1ULL; - if (ret) + if (ret) { + f->real_file_size = -1ULL; return ret; + } if (f->file_offset > f->real_file_size) { log_err("%s: offset extends end (%llu > %llu)\n", td->o.name, -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html