From 30bec59eab3908b681cbc2866179f7166a849c83 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 11 May 2021 07:58:03 -0600 Subject: [PATCH] os: define EDQUOT to EIO if the OS doesn't provide it Fixes: 418f53993b07 ("Make fill_device to stop writing on EDQUOT") Signed-off-by: Jens Axboe --- os/os.h | 5 +++++ 1 file changed, 5 insertions(+) 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 #include #include +#include #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 #ifndef FIO_OS_HAVE_AIOCB_TYPEDEF -- 2.25.1