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

Function vdev_count_leaves

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

Source from the content-addressed store, hash-verified

400}
401
402int
403vdev_count_leaves(spa_t *spa)
404{
405 int rc;
406
407 spa_config_enter(spa, SCL_VDEV, FTAG, RW_READER);
408 rc = vdev_count_leaves_impl(spa->spa_root_vdev);
409 spa_config_exit(spa, SCL_VDEV, FTAG);
410
411 return (rc);
412}
413
414void
415vdev_add_child(vdev_t *pvd, vdev_t *cvd)

Callers 4

mmp_delay_updateFunction · 0.85
mmp_threadFunction · 0.85
dmu_objset_find_dpFunction · 0.85

Calls 3

spa_config_enterFunction · 0.85
vdev_count_leaves_implFunction · 0.85
spa_config_exitFunction · 0.85

Tested by

no test coverage detected