kdave / btrfs-progs

Development of userspace BTRFS tools
GNU General Public License v2.0
527 stars 239 forks source link

btrfs-progs: zoned: proper "mkfs.btrfs -b" support #797

Closed adam900710 closed 4 weeks ago

adam900710 commented 1 month ago

From Naohiro Aota:

mkfs.btrfs -b on a zoned device has several issues listed below.

This series fixes the issues with some cleanups.

This one passed CI workflow here:

Patches 1 to 3 are clean up patches, so they should not change the behavior.

Patches 4 to 6 address the issues.

Patches 7 to 10 add/modify the test cases. First, patch 7 adds nullb functions to use in later patches. Patch 8 adds a new test for zone resetting. And, patches 9 and 10 rewrites existing tests with the nullb helper.

Changes:

kdave commented 4 weeks ago

Thanks, merged to devel. I did a few minor comment or changelog wording fixes.