diff options
author | Matthew Macy <[email protected]> | 2019-10-25 13:40:50 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-25 13:40:50 -0700 |
commit | 1952fe0e2552d9b65b2db1e76c1a4a3f5ab0f27e (patch) | |
tree | 079221a6e2b8f97336574445cfb437b26e5ef7e1 /include/os/linux/spl | |
parent | 68a1b1589ad60f9c07d3299f7068ad29fb47e695 (diff) |
Move platform dependent errno aliases
EBADE, EBADR, and ENOANO do not exist on FreeBSD
The libspl errno.h is similarly platform dependent.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9498
Diffstat (limited to 'include/os/linux/spl')
-rw-r--r-- | include/os/linux/spl/sys/errno.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/os/linux/spl/sys/errno.h b/include/os/linux/spl/sys/errno.h index 6015b1a3e..f6d9212a6 100644 --- a/include/os/linux/spl/sys/errno.h +++ b/include/os/linux/spl/sys/errno.h @@ -44,4 +44,14 @@ #define ENOTSUP EOPNOTSUPP +/* + * We'll take the unused errnos, 'EBADE' and 'EBADR' (from the Convergent + * graveyard) to indicate checksum errors and fragmentation. + */ +#define ECKSUM EBADE +#define EFRAGS EBADR + +/* Similar for ENOACTIVE */ +#define ENOTACTIVE ENOANO + #endif /* _SYS_ERRNO_H */ |