Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/sys/vdev_raidz_impl.h
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | typedef struct raidz_impl_ops { | ||||
will_work_f is_supported; /* Support check function */ | will_work_f is_supported; /* Support check function */ | ||||
char name[RAIDZ_IMPL_NAME_MAX]; /* Name of the implementation */ | char name[RAIDZ_IMPL_NAME_MAX]; /* Name of the implementation */ | ||||
} raidz_impl_ops_t; | } raidz_impl_ops_t; | ||||
typedef struct raidz_col { | typedef struct raidz_col { | ||||
uint64_t rc_devidx; /* child device index for I/O */ | uint64_t rc_devidx; /* child device index for I/O */ | ||||
uint64_t rc_offset; /* device offset */ | uint64_t rc_offset; /* device offset */ | ||||
uint64_t rc_size; /* I/O size */ | uint64_t rc_size; /* I/O size */ | ||||
abd_t rc_abdstruct; /* rc_abd probably points here */ | |||||
abd_t *rc_abd; /* I/O data */ | abd_t *rc_abd; /* I/O data */ | ||||
void *rc_orig_data; /* pre-reconstruction */ | void *rc_orig_data; /* pre-reconstruction */ | ||||
abd_t *rc_gdata; /* used to store the "good" version */ | abd_t *rc_gdata; /* used to store the "good" version */ | ||||
int rc_error; /* I/O error for this device */ | int rc_error; /* I/O error for this device */ | ||||
uint8_t rc_tried; /* Did we attempt this I/O column? */ | uint8_t rc_tried; /* Did we attempt this I/O column? */ | ||||
uint8_t rc_skipped; /* Did we skip this I/O column? */ | uint8_t rc_skipped; /* Did we skip this I/O column? */ | ||||
uint8_t rc_need_orig_restore; /* need to restore from orig_data? */ | uint8_t rc_need_orig_restore; /* need to restore from orig_data? */ | ||||
uint8_t rc_repair; /* Write good data to this column */ | uint8_t rc_repair; /* Write good data to this column */ | ||||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |