mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9498
This commit is contained in:
committed by
Brian Behlendorf
parent
68a1b1589a
commit
1952fe0e25
@@ -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 */
|
||||
|
||||
@@ -265,16 +265,6 @@ enum zio_wait_type {
|
||||
ZIO_WAIT_TYPES
|
||||
};
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
||||
typedef void zio_done_func_t(zio_t *zio);
|
||||
|
||||
extern int zio_dva_throttle_enabled;
|
||||
|
||||
Reference in New Issue
Block a user