* Get the parity level for a top-level vdev. */
| 330 | * Get the parity level for a top-level vdev. |
| 331 | */ |
| 332 | uint64_t |
| 333 | vdev_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. |
no outgoing calls
no test coverage detected