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

Function vdev_get_min_alloc

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

* Get the minimal allocation size for the top-level vdev. */

Source from the content-addressed store, hash-verified

316 * Get the minimal allocation size for the top-level vdev.
317 */
318uint64_t
319vdev_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.

Callers 2

vdev_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected