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

Function vdev_count_leaves_impl

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

Source from the content-addressed store, hash-verified

386}
387
388static int
389vdev_count_leaves_impl(vdev_t *vd)
390{
391 int n = 0;
392
393 if (vd->vdev_ops->vdev_op_leaf)
394 return (1);
395
396 for (int c = 0; c < vd->vdev_children; c++)
397 n += vdev_count_leaves_impl(vd->vdev_child[c]);
398
399 return (n);
400}
401
402int
403vdev_count_leaves(spa_t *spa)

Callers 1

vdev_count_leavesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected