Skip to content

Misc btrfs-progs cleanups/fixes

Nikolay Borisov linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7btrfs-progs: Explictly state test.sh must be executabletests/README.md+3 -11 reply
2/7btrfs-progs: Factor out common print_device_infochunk-recover.c super-recover.c utils.c +1 more+21 -311 reply
3/7btrfs-progs: Remove recover_get_good_supersuper-recover.c+3 -101 reply
4/7btrfs-progs: Use list_for_each_entry in write_dev_all_supersdisk-io.c+1 -34 replies
5/7btrfs-progs: Document logic of btrfs_read_dev_superdisk-io.c+17 -01 reply
6/7btrfs-progs: Add test for super block recoverytests/fsck-tests/029-superblock-recovery/test.sh+64 -08 replies
7/7btrfs-progs: Fix super-recoverysuper-recover.c+1 -11 reply

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchQu Wenruo
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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