* Check if the txg falls within the range which must be * resilvered. DVAs outside this range can always be skipped. */
| 2683 | * resilvered. DVAs outside this range can always be skipped. |
| 2684 | */ |
| 2685 | boolean_t |
| 2686 | vdev_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. |
nothing calls this directly
no test coverage detected