summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-05-11 07:58:03 -0600
committerJens Axboe <axboe@kernel.dk>2021-05-11 07:58:03 -0600
commit30bec59eab3908b681cbc2866179f7166a849c83 (patch)
tree28be3f48c9ca714a6d051efd544c714902376b02
parent418f53993b07e48b5a69db84c9c7209acd53eac3 (diff)
downloadfio-master.tar.gz
fio-master.tar.bz2
os: define EDQUOT to EIO if the OS doesn't provide itHEADmaster
Fixes: 418f53993b07 ("Make fill_device to stop writing on EDQUOT") Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--os/os.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/os.h b/os/os.h
index b46f4164..e47d3d97 100644
--- a/os/os.h
+++ b/os/os.h
@@ -7,6 +7,7 @@
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
+#include <errno.h>
#include "../arch/arch.h" /* IWYU pragma: export */
#include "../lib/types.h"
@@ -58,6 +59,10 @@ typedef enum {
#error "unsupported os"
#endif
+#ifndef EDQUOT
+#define EDQUOT EIO
+#endif
+
#ifdef CONFIG_POSIXAIO
#include <aio.h>
#ifndef FIO_OS_HAVE_AIOCB_TYPEDEF