Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | |||||
enum zio_wait_type { | enum zio_wait_type { | ||||
ZIO_WAIT_READY = 0, | ZIO_WAIT_READY = 0, | ||||
ZIO_WAIT_DONE, | ZIO_WAIT_DONE, | ||||
ZIO_WAIT_TYPES | ZIO_WAIT_TYPES | ||||
}; | }; | ||||
/* | /* | ||||
* We'll take the number 122 and 123 to indicate checksum errors and | * These are bespoke errnos used in ZFS. We map them to their closest FreeBSD | ||||
* fragmentation. Those doesn't collide with any errno values as they | * equivalents. This gives us more useful error messages from strerror(3). | ||||
* are greater than ELAST. | |||||
*/ | */ | ||||
#define ECKSUM 122 | #define ECKSUM EINTEGRITY | ||||
#define EFRAGS 123 | #define EFRAGS ENOSPC | ||||
typedef void zio_done_func_t(zio_t *zio); | typedef void zio_done_func_t(zio_t *zio); | ||||
extern boolean_t zio_dva_throttle_enabled; | extern boolean_t zio_dva_throttle_enabled; | ||||
extern const char *zio_type_name[ZIO_TYPES]; | extern const char *zio_type_name[ZIO_TYPES]; | ||||
/* | /* | ||||
* A bookmark is a four-tuple <objset, object, level, blkid> that uniquely | * A bookmark is a four-tuple <objset, object, level, blkid> that uniquely | ||||
▲ Show 20 Lines • Show All 427 Lines • Show Last 20 Lines |