MacOS doesn't have EUCLEAN, so we use EIO as the closest error code. But then we need to avoid a compile error caused by a duplicate case labels of EUCLEAN and EIO. Signed-off-by: Theodore Ts'o --- misc/fuse2fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c index dfbc98636..94e289fab 100644 --- a/misc/fuse2fs.c +++ b/misc/fuse2fs.c @@ -5870,7 +5870,9 @@ static int __translate_error(ext2_filsys fs, ext2_ino_t ino, errcode_t err, #ifdef EILSEQ case EILSEQ: #endif +#if EUCLEAN != EIO case EUCLEAN: +#endif /* these errnos usually denote corruption or persistence fail */ is_err = 1; ret = -err; -- 2.51.0