btrfs-progs: check and tune: add device and noscan options
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | btrfs-progs: common: add --device option helperscommon/ common/ | +34 | 3 replies | |
| 2/10 | btrfs-progs: tune: consolidate return goto free-outtune/ | +17 | 0 replies | |
| 3/10 | btrfs-progs: tune: introduce --device optiontune/ | +33 | 0 replies | |
| 4/10 | btrfs-progs: docs: update btrfstune --device optionDocumentation/ | +3 | 2 replies | |
| 5/10 | btrfs-progs: tune: introduce --noscan optiontune/ | +9 | 0 replies | |
| 6/10 | btrfs-progs: docs: update btrfstune --noscan optionDocumentation/ | +4 | 0 replies | |
| 7/10 | btrfs-progs: check: introduce --device optioncheck/ | +39 | 0 replies | |
| 8/10 | btrfs-progs: docs: update btrfs check --device optionDocumentation/ | +2 | 0 replies | |
| 9/10 | btrfs-progs: check: introduce --noscan optioncheck/ | +5 | 0 replies | |
| 10/10 | btrfs-progs: docs: update btrfs check --noscan optionDocumentation/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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/td3In 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