Page MenuHomeFreeBSD

libsa/zfs: ignore labels with zero txg
ClosedPublic

Authored by glebius on Aug 15 2025, 5:42 AM.
Tags
None
Referenced Files
F176263742: D51910.id.diff
Sat, Oct 17, 11:58 AM
F176256328: D51910.id160384.diff
Sat, Oct 17, 9:58 AM
F176254417: D51910.id160672.diff
Sat, Oct 17, 9:27 AM
F176251959: D51910.diff
Sat, Oct 17, 8:53 AM
Unknown Object (File)
Mon, Oct 12, 2:06 PM
Unknown Object (File)
Mon, Oct 12, 1:35 PM
Unknown Object (File)
Sat, Oct 10, 10:38 PM
Unknown Object (File)
Sat, Oct 10, 12:43 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66253
Build 63136: arc lint + arc unit

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.