Add warning about the filesystem not liking direct=1/buffered=0 to
initial layout code.
v2:
- Update warning to include /buffered=0 so it matches other EINVAL
warnings
- Minor commit message update
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
if (err == ENOENT && !td->o.allow_create)
log_err("fio: file creation disallowed by "
"allow_file_create=0\n");
- else
+ else {
+ if (err == EINVAL && (flags & OS_O_DIRECT))
+ log_err("fio: looks like your filesystem "
+ "does not support "
+ "direct=1/buffered=0\n");
+
td_verror(td, err, "open");
+ }
return 1;
}