Skip to content

btrfs-progs: check and tune: add device and noscan options

Anand Jain linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10btrfs-progs: common: add --device option helperscommon/device-scan.c common/device-scan.h+34 -03 replies
2/10btrfs-progs: tune: consolidate return goto free-outtune/main.c+17 -100 replies
3/10btrfs-progs: tune: introduce --device optiontune/main.c+33 -10 replies
4/10btrfs-progs: docs: update btrfstune --device optionDocumentation/btrfstune.rst+3 -02 replies
5/10btrfs-progs: tune: introduce --noscan optiontune/main.c+9 -30 replies
6/10btrfs-progs: docs: update btrfstune --noscan optionDocumentation/btrfstune.rst+4 -00 replies
7/10btrfs-progs: check: introduce --device optioncheck/main.c+39 -20 replies
8/10btrfs-progs: docs: update btrfs check --device optionDocumentation/btrfs-check.rst+2 -00 replies
9/10btrfs-progs: check: introduce --noscan optioncheck/main.c+5 -10 replies
10/10btrfs-progs: docs: update btrfs check --noscan optionDocumentation/btrfs-check.rst+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] btrfs-progs: check and tune: add device and noscan options

By default, btrfstune and btrfs check scans all and only the block devices in the system.

To scan regular files without mapping them to a loop device, adds the --device option.

To indicate not to scan the system for other devices, adds the --noscan option.

For example:

The command below will scan both regular files and the devices provided in the --device option, along with the system block devices.

        btrfstune -m --device /tdev/td1,/tdev/td2 /tdev/td3
  or
        btrfs check --device /tdev/td1 --device /tdev/td2 /tdev/td3

In some cases, if you need to avoid the default system scan for the block device, you can use the --noscan option.

        btrfstune -m --noscan --device /tdev/td1,/tdev/td2 /tdev/td3

        btrfs check --noscan --device /tdev/td1,/tdev/td2 /tdev/td3

This patch bundle depends on the preparatory patch bundle sent before:
[PATCH 0/6 v3] btrfs-progs: cleanup and preparatory around device scan

And, replaces [1] in the mailing list, as the --device option helper function is peeled and transformed into a common helper function in a separate patch.

    [1] [PATCH 0/4] btrfs-progs: tune: add --device and --noscan option

Anand Jain (10):
btrfs-progs: common: add --device option helpers
btrfs-progs: tune: consolidate return goto free-out
btrfs-progs: tune: introduce --device option
btrfs-progs: docs: update btrfstune --device option
btrfs-progs: tune: introduce --noscan option
btrfs-progs: docs: update btrfstune --noscan option
btrfs-progs: check: introduce --device option
btrfs-progs: docs: update btrfs check --device option
btrfs-progs: check: introduce --noscan option
btrfs-progs: docs: update btrfs check --noscan option

 Documentation/btrfs-check.rst |  6 +++
 Documentation/btrfstune.rst   |  7 ++++
 check/main.c                  | 45 +++++++++++++++++++++-
 common/device-scan.c          | 32 ++++++++++++++++
 common/device-scan.h          |  2 +
 tune/main.c                   | 71 ++++++++++++++++++++++++++++-------
 6 files changed, 148 insertions(+), 15 deletions(-)
Signature · 1 line
2.31.1