Misc btrfs-progs cleanups/fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 17 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | btrfs-progs: Explictly state test.sh must be executabletests/ | +3 | 1 reply | |
| 2/7 | btrfs-progs: Factor out common print_device_infochunk-recover.c super-recover.c utils.c +1 more | +21 | 1 reply | |
| 3/7 | btrfs-progs: Remove recover_get_good_supersuper-recover.c | +3 | 1 reply | |
| 4/7 | btrfs-progs: Use list_for_each_entry in write_dev_all_supersdisk-io.c | +1 | 4 replies | |
| 5/7 | btrfs-progs: Document logic of btrfs_read_dev_superdisk-io.c | +17 | 1 reply | |
| 6/7 | btrfs-progs: Add test for super block recoverytests/ | +64 | 8 replies | |
| 7/7 | btrfs-progs: Fix super-recoverysuper-recover.c | +1 | 1 reply |
Reviews trailers per patch
6 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Qu Wenruo |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] Misc btrfs-progs cleanups/fixes
Here is a series doing some minor code cleanups, hopefully making the code more idiomatic and easier to follow. They should be pretty low-risk and introduce no functional changes (patches 1-5).
The the last 2 patches deal with a regression of btrfs rescue super-recovery. Turns out this was broken for sometime. Patch 6 introduces a regression test which hopefully will prevent further occurences and patch 7 fixes the actual bug.
Nikolay Borisov (7):
btrfs-progs: Explictly state test.sh must be executable
btrfs-progs: Factor out common print_device_info
btrfs-progs: Remove recover_get_good_super
btrfs-progs: Use list_for_each_entry in write_dev_all_supers
btrfs-progs: Document logic of btrfs_read_dev_super
btrfs-progs: Add test for super block recovery
btrfs-progs: Fix super-recovery
chunk-recover.c | 18 ------- disk-io.c | 21 ++++++-- super-recover.c | 28 ++--------- tests/README.md | 4 +- tests/fsck-tests/029-superblock-recovery/test.sh | 64 ++++++++++++++++++++++++ utils.c | 18 +++++++ utils.h | 3 ++ 7 files changed, 110 insertions(+), 46 deletions(-) create mode 100755 tests/fsck-tests/029-superblock-recovery/test.sh
Signature · 1 line
2.7.4