Print this page
expandable RAID-Z


 108                         vdev_set_state(vd, B_FALSE, VDEV_STATE_CANT_OPEN,
 109                             VDEV_AUX_NO_REPLICAS);
 110                 else
 111                         vdev_set_state(vd, B_FALSE, VDEV_STATE_FAULTED,
 112                             VDEV_AUX_NO_REPLICAS);
 113         } else if (degraded) {
 114                 vdev_set_state(vd, B_FALSE, VDEV_STATE_DEGRADED, VDEV_AUX_NONE);
 115         } else {
 116                 vdev_set_state(vd, B_FALSE, VDEV_STATE_HEALTHY, VDEV_AUX_NONE);
 117         }
 118 }
 119 
 120 vdev_ops_t vdev_root_ops = {
 121         vdev_root_open,
 122         vdev_root_close,
 123         NULL,
 124         vdev_default_asize,
 125         NULL,                   /* io_start - not applicable to the root */
 126         NULL,                   /* io_done - not applicable to the root */
 127         vdev_root_state_change,

 128         VDEV_TYPE_ROOT,         /* name of this vdev type */
 129         B_FALSE                 /* not a leaf vdev */
 130 };


 108                         vdev_set_state(vd, B_FALSE, VDEV_STATE_CANT_OPEN,
 109                             VDEV_AUX_NO_REPLICAS);
 110                 else
 111                         vdev_set_state(vd, B_FALSE, VDEV_STATE_FAULTED,
 112                             VDEV_AUX_NO_REPLICAS);
 113         } else if (degraded) {
 114                 vdev_set_state(vd, B_FALSE, VDEV_STATE_DEGRADED, VDEV_AUX_NONE);
 115         } else {
 116                 vdev_set_state(vd, B_FALSE, VDEV_STATE_HEALTHY, VDEV_AUX_NONE);
 117         }
 118 }
 119 
 120 vdev_ops_t vdev_root_ops = {
 121         vdev_root_open,
 122         vdev_root_close,
 123         NULL,
 124         vdev_default_asize,
 125         NULL,                   /* io_start - not applicable to the root */
 126         NULL,                   /* io_done - not applicable to the root */
 127         vdev_root_state_change,
 128         NULL,
 129         VDEV_TYPE_ROOT,         /* name of this vdev type */
 130         B_FALSE                 /* not a leaf vdev */
 131 };