Skip to content

btrfs-progs: check: Introduce optional argument for -b|--backup

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: utils-lib: Use error() to replace fprintf(stderr, "ERROR: ")utils-lib.c+3 -51 reply
2/3btrfs-progs: disk-io: Handle backup root more correctlydisk-io.c+26 -80 replies
3/3btrfs-progs: check: Introduce optional argument for -b|--backupDocumentation/btrfs-check.asciidoc check/main.c common/utils.h +4 more+100 -230 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJohannes Thumshirn
1/3R-b
2/3
3/3

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/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