MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_accessible

Function vdev_accessible

freebsd/contrib/openzfs/module/zfs/vdev.c:4055–4070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4053}
4054
4055boolean_t
4056vdev_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
4072static void
4073vdev_get_child_stat(vdev_t *cvd, vdev_stat_t *vs, vdev_stat_t *cvs)

Callers 5

vdev_probe_doneFunction · 0.85
zfs_ereport_is_validFunction · 0.85
zio_vdev_io_startFunction · 0.85
zio_vdev_io_doneFunction · 0.85
zio_vdev_io_assessFunction · 0.85

Calls 1

vdev_is_deadFunction · 0.85

Tested by

no test coverage detected