Skip to content

btrfs-progs: tune: add --device and --noscan option

Anand Jain linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 1 replyIn review

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

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

Separated out from the preparatory patch set. Depends on the preparatory patch set: ("btrfs-progs: cleanup and preparatory around device scan"). This set (along with its preparatory patch) has passed the btrfs-progs test suite.

By default, btrfstune scans all the block devices in the system.

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

The option arguments follow the same pattern as in the "mkfs.btrfs -O" option.

To indicate not to scan the system for other devices, add 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
	btrfstune -m --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

Anand Jain (5):
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

 Documentation/btrfstune.rst |   7 +++
 tune/main.c                 | 103 ++++++++++++++++++++++++++++++------
 2 files changed, 95 insertions(+), 15 deletions(-)
Signature · 1 line
2.38.1