X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=b04fb3e9b89362d1012883f594d9e6c7943e9fb3;hp=085d0c89fc9e6381fcc4c3dd05c6e2ddb0864a66;hb=22de5d77;hpb=4499dbef877f3df59a65e9a53b6a6d832a94e315;ds=sidebyside diff --git a/filesetup.c b/filesetup.c index 085d0c89..b04fb3e9 100644 --- a/filesetup.c +++ b/filesetup.c @@ -479,6 +479,8 @@ static int __file_invalidate_cache(struct thread_data *td, struct fio_file *f, } if (ret < 0) errval = errno; + else if (ret) /* probably not supported */ + errval = ret; } else if (f->filetype == FIO_TYPE_CHAR || f->filetype == FIO_TYPE_PIPE) { dprint(FD_IO, "invalidate not supported %s\n", f->file_name); @@ -492,7 +494,8 @@ static int __file_invalidate_cache(struct thread_data *td, struct fio_file *f, * continue on our way. */ if (errval) - log_info("fio: cache invalidation of %s failed: %s\n", f->file_name, strerror(errval)); + log_info("fio: cache invalidation of %s failed: %s\n", + f->file_name, strerror(errval)); return 0;