Lines Matching refs:vdev
199 * vdev virtual device ID
739 * The persistent vdev state is stored as separate values rather than a single
774 * vdev states are ordered from least to most healthy.
775 * A vdev that's CANT_OPEN or below is considered unusable.
778 VDEV_STATE_UNKNOWN = 0, /* Uninitialized vdev */
784 VDEV_STATE_DEGRADED, /* Replicated vdev with unhealthy kids */
789 * vdev aux states. When a vdev is in the CANT_OPEN state, the aux field
790 * of the vdev stats structure uses these constants to distinguish why.
797 VDEV_AUX_BAD_GUID_SUM, /* vdev guid sum doesn't match */
798 VDEV_AUX_TOO_SMALL, /* vdev size is too small */
837 uint64_t ub_guid_sum; /* sum of all vdev guids */
1522 * In-core vdev representation.
1524 struct vdev;
1526 typedef int vdev_phys_read_t(struct vdev *vdev, void *priv,
1528 typedef int vdev_read_t(struct vdev *vdev, const blkptr_t *bp,
1531 typedef STAILQ_HEAD(vdev_list, vdev) vdev_list_t;
1533 typedef struct vdev {
1534 STAILQ_ENTRY(vdev) v_childlink; /* link in parent's child list */
1535 STAILQ_ENTRY(vdev) v_alllink; /* link in global vdev list */
1536 vdev_list_t v_children; /* children of this vdev */
1537 const char *v_name; /* vdev name */
1538 uint64_t v_guid; /* vdev guid */
1542 struct vdev *v_top; /* parent vdev */
1545 vdev_phys_read_t *v_phys_read; /* read from raw leaf vdev */
1546 vdev_read_t *v_read; /* read from vdev */