| 4053 | } |
| 4054 | |
| 4055 | boolean_t |
| 4056 | vdev_accessible(vdev_t *vd, zio_t *zio) |
| 4057 | { |
| 4058 | ASSERT(zio->io_vd == vd); |
| 4059 | |
| 4060 | if (vdev_is_dead(vd) || vd->vdev_remove_wanted) |
| 4061 | return (B_FALSE); |
| 4062 | |
| 4063 | if (zio->io_type == ZIO_TYPE_READ) |
| 4064 | return (!vd->vdev_cant_read); |
| 4065 | |
| 4066 | if (zio->io_type == ZIO_TYPE_WRITE) |
| 4067 | return (!vd->vdev_cant_write); |
| 4068 | |
| 4069 | return (B_TRUE); |
| 4070 | } |
| 4071 | |
| 4072 | static void |
| 4073 | vdev_get_child_stat(vdev_t *cvd, vdev_stat_t *vs, vdev_stat_t *cvs) |
no test coverage detected