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

Function vdev_get_nparity

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

* Get the parity level for a top-level vdev. */

Source from the content-addressed store, hash-verified

330 * Get the parity level for a top-level vdev.
331 */
332uint64_t
333vdev_get_nparity(vdev_t *vd)
334{
335 uint64_t nparity = 0;
336
337 if (vd->vdev_ops->vdev_op_nparity != NULL)
338 nparity = vd->vdev_ops->vdev_op_nparity(vd);
339
340 return (nparity);
341}
342
343/*
344 * Get the number of data disks for a top-level vdev.

Callers 6

vdev_raidz_combrecFunction · 0.85
vdev_dtl_reassessFunction · 0.85
spa_vdev_addFunction · 0.85
vdev_remove_enlist_zapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected