Skip to content

btrfs-progs: cmds/tune: add set/clear features

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7btrfs-progs: export btrfs_feature structurecommon/fsfeatures.c common/fsfeatures.h+50 -532 replies
2/7btrfs-progs: cmds: add "btrfs tune set" subcommand groupDocumentation/btrfs-tune.rst Documentation/btrfs.rst Documentation/conf.py +5 more+277 -14 replies
3/7btrfs-progs: cmds/tune: add set support for free-space-tree featurecmds/tune.c+52 -00 replies
4/7btrfs-progs: cmds/tune: add set support for block-group-tree featureMakefile cmds/tune.c+26 -10 replies
5/7btrfs-progs: cmds/tune: add set support for seeding deviceMakefile cmds/tune.c+35 -20 replies
6/7btrfs-progs: cmds/tune: add "btrfs tune clear" subcommandDocumentation/btrfs-tune.rst cmds/tune.c+118 -00 replies
7/7btrfs-progs: tests/cli: add a test case for "btrfs tune" subcommandtests/cli-tests/018-btrfs-tune/test.sh+40 -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 0/7] btrfs-progs: cmds/tune: add set/clear features

This is the first step to convert btrfstune functionality to "btrfs tune" subcommand group.

For now only binary features, aka set and clear, is supported, thus uuid and csum change is not yet implemented.
(Both need their own subcommand groups other than set/clear groups)

And even for set/clear, there is some changes to btrfstune:

- Merge seed feature into set/clear
To enable seeding, just go "btrfs tune set seed <device>".

- All supported features can be checked by "list-all" feature Please note that, "btrfs tune set list-all" and "btrfs tune clear list-all" will have different output.

The reason is some fundamental features like no-holes can not be disabled.

Qu Wenruo (7):
btrfs-progs: export btrfs_feature structure
btrfs-progs: cmds: add "btrfs tune set" subcommand group
btrfs-progs: cmds/tune: add set support for free-space-tree feature
btrfs-progs: cmds/tune: add set support for block-group-tree feature
btrfs-progs: cmds/tune: add set support for seeding device
btrfs-progs: cmds/tune: add "btrfs tune clear" subcommand
btrfs-progs: tests/cli: add a test case for "btrfs tune" subcommand

 Documentation/btrfs-tune.rst           |  47 +++
 Documentation/btrfs.rst                |   5 +
 Documentation/conf.py                  |   1 +
 Documentation/man-index.rst            |   1 +
 Makefile                               |   4 +-
 btrfs.c                                |   1 +
 cmds/commands.h                        |   1 +
 cmds/tune.c                            | 448 +++++++++++++++++++++++++
 common/fsfeatures.c                    |  53 ---
 common/fsfeatures.h                    |  50 +++
 tests/cli-tests/018-btrfs-tune/test.sh |  40 +++
 11 files changed, 596 insertions(+), 55 deletions(-)
 create mode 100644 Documentation/btrfs-tune.rst
 create mode 100644 cmds/tune.c
 create mode 100755 tests/cli-tests/018-btrfs-tune/test.sh

--
2.42.0