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

Function vdev_is_dead

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

Source from the content-addressed store, hash-verified

4007}
4008
4009boolean_t
4010vdev_is_dead(vdev_t *vd)
4011{
4012 /*
4013 * Holes and missing devices are always considered "dead".
4014 * This simplifies the code since we don't have to check for
4015 * these types of devices in the various code paths.
4016 * Instead we rely on the fact that we skip over dead devices
4017 * before issuing I/O to them.
4018 */
4019 return (vd->vdev_state < VDEV_STATE_DEGRADED ||
4020 vd->vdev_ops == &vdev_hole_ops ||
4021 vd->vdev_ops == &vdev_missing_ops);
4022}
4023
4024boolean_t
4025vdev_readable(vdev_t *vd)

Callers 15

vdev_label_write_pad2Function · 0.85
vdev_degradeFunction · 0.85
vdev_onlineFunction · 0.85
vdev_offline_lockedFunction · 0.85
vdev_clearFunction · 0.85
vdev_readableFunction · 0.85
vdev_writeableFunction · 0.85
vdev_accessibleFunction · 0.85
vdev_set_stateFunction · 0.85
arc_readFunction · 0.85
l2arc_dev_get_nextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected