Message ID | cover.1686484243.git.anand.jain@oracle.com (mailing list archive) |
---|---|
Headers | show |
Series | btrfs-progs: tune: add --device and --noscan option | expand |
Please ignore this patch bundle and instead use the new patch bundle. [PATCH 00/10] btrfs-progs: check and tune: add device and noscan options Thanks. On 13/6/23 18:47, Anand Jain wrote: > 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(-) >