HomeFreeBSD

libsa/zfs: ignore labels with zero txg

Description

libsa/zfs: ignore labels with zero txg

Zero txg means this vdev has been correctly removed from the pool. For
reference see module/zfs/vdev_removal.c in OpenZFS. It calls
vdev_label_init(vd, 0, VDEV_LABEL_REMOVE), and second argument there is
the txg to write.

Reviewed by: tsoome, mav, imp
Differential Revision: https://reviews.freebsd.org/D51910

Details

Provenance
glebiusAuthored on Aug 20 2025, 2:51 PM
Reviewer
tsoome
Differential Revision
D51910: libsa/zfs: ignore labels with zero txg
Parents
rG5d5d03356e21: libsa/zfs: remove unused variable
Branches
Unknown
Tags
Unknown