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

Function vdev_default_need_resilver

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

* Check if the txg falls within the range which must be * resilvered. DVAs outside this range can always be skipped. */

Source from the content-addressed store, hash-verified

2683 * resilvered. DVAs outside this range can always be skipped.
2684 */
2685boolean_t
2686vdev_default_need_resilver(vdev_t *vd, const dva_t *dva, size_t psize,
2687 uint64_t phys_birth)
2688{
2689 /* Set by sequential resilver. */
2690 if (phys_birth == TXG_UNKNOWN)
2691 return (B_TRUE);
2692
2693 return (vdev_dtl_contains(vd, DTL_PARTIAL, phys_birth, 1));
2694}
2695
2696/*
2697 * Returns B_TRUE if the vdev determines the DVA needs to be resilvered.

Callers

nothing calls this directly

Calls 1

vdev_dtl_containsFunction · 0.85

Tested by

no test coverage detected