btrfs-progs: check: Introduce optional argument for -b|--backup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs-progs: utils-lib: Use error() to replace fprintf(stderr, "ERROR: ")utils-lib.c | +3 | 1 reply | |
| 2/3 | btrfs-progs: disk-io: Handle backup root more correctlydisk-io.c | +26 | 0 replies | |
| 3/3 | btrfs-progs: check: Introduce optional argument for -b|--backupDocumentation/ check/ common/ +4 more | +100 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Johannes Thumshirn |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] btrfs-progs: check: Introduce optional argument for -b|--backup
Before this patchset, if we want to use backup roots, it's only possible to let btrfs-check to automatically choose the backup.
If user want to use a specified backup, it can only use -r|--tree-root option along with backup roots dump from "btrfs ins dump-super".
This patchset will introduce optional argument for -b|--backup, so user can specify which backup to use by providing the generation difference (-3, -2, -1).
If the optional argument is not provided, the default value is -1, and the behavior should be pretty much the same.
Qu Wenruo (3):
btrfs-progs: utils-lib: Use error() to replace fprintf(stderr, "ERROR:
")
btrfs-progs: disk-io: Handle backup root more correctly
btrfs-progs: check: Introduce optional argument for -b|--backup
Documentation/btrfs-check.asciidoc | 6 ++-- check/main.c | 33 +++++++++++++++--- common/utils.h | 1 + ctree.h | 8 +++++ disk-io.c | 55 ++++++++++++++++++++++++------ disk-io.h | 33 +++++++++++------- utils-lib.c | 25 +++++++++++--- 7 files changed, 127 insertions(+), 34 deletions(-)
Signature · 1 line
2.23.0