Page MenuHomeFreeBSD

libsa/zfs: ignore labels with zero txg
ClosedPublic

Authored by glebius on Aug 15 2025, 5:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 8:06 AM
Unknown Object (File)
Sat, Oct 11, 8:06 AM
Unknown Object (File)
Sat, Oct 11, 8:06 AM
Unknown Object (File)
Sat, Oct 11, 12:45 AM
Unknown Object (File)
Wed, Oct 8, 6:44 PM
Unknown Object (File)
Fri, Oct 3, 3:12 PM
Unknown Object (File)
Thu, Oct 2, 8:48 PM
Unknown Object (File)
Tue, Sep 30, 8:38 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 15 2025, 9:27 PM

Searching for ZPOOL_CONFIG_POOL_TXG in OpenZFS I indeed see plenty of similar txg == 0 checks.

This revision was automatically updated to reflect the committed changes.