* Get the minimal allocation size for the top-level vdev. */
| 316 | * Get the minimal allocation size for the top-level vdev. |
| 317 | */ |
| 318 | uint64_t |
| 319 | vdev_get_min_alloc(vdev_t *vd) |
| 320 | { |
| 321 | uint64_t min_alloc = 1ULL << vd->vdev_ashift; |
| 322 | |
| 323 | if (vd->vdev_ops->vdev_op_min_alloc != NULL) |
| 324 | min_alloc = vd->vdev_ops->vdev_op_min_alloc(vd); |
| 325 | |
| 326 | return (min_alloc); |
| 327 | } |
| 328 | |
| 329 | /* |
| 330 | * Get the parity level for a top-level vdev. |
no outgoing calls
no test coverage detected