btrfs-progs: hide block group tree behind experimental feature
PATCH 1/1 btrfs-progs: hide block group tree behind experimental feature
The block group tree doesn't yet have full bi-directional conversion support from btrfstune, and it seems we may want one or two release cycles to rule out some extra bugs before really releasing the progs support.
This patch will hide the block group tree feature behind experimental flag for the following tools:
- btrfstune
"-b" option to convert to bg tree.
- mkfs.btrfs
hide "block-group-tree" feature from both -O (the new default position for all features) and -R (the old, soon to be deprecated one).
--- btrfstune.c | 4 ++++ common/fsfeatures.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-)
btrfstune.c +4 -0
@@ -949,7 +949,11 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[])#endif { NULL, 0, NULL, 0 } }; +#if EXPERIMENTAL int c =getopt_long (argc, argv,"S:rxfuU:nmM:b" , long_options,NULL ); +#else +int c =getopt_long (argc, argv,"S:rxfuU:nmM:" , long_options,NULL ); +#endif if (c <0 )break ;
common/fsfeatures.c +3 -1
@@ -224,14 +224,16 @@ static const struct btrfs_feature runtime_features[] = {VERSION_TO_STRING2 (safe,4 ,9 ),VERSION_TO_STRING2 (default,5 ,15 ), .desc = "free space tree (space_cache=v2)" +#if EXPERIMENTAL }, { .name = "block-group-tree", .flag = BTRFS_RUNTIME_FEATURE_BLOCK_GROUP_TREE, .sysfs_name ="block_group_tree" , -VERSION_TO_STRING2 (compat,6 ,0 ), +VERSION_TO_STRING2 (compat,6 ,2 ),VERSION_NULL (safe),VERSION_NULL (default), .desc = "block group tree to reduce mount time" +#endif }, /* Keep this one last */ {
Signature · 1 line
2.37.3
Quoted 8 lines · Qu Wenruo
The block group tree doesn't yet have full bi-directional conversion support from btrfstune, and it seems we may want one or two release cycles to rule out some extra bugs before really releasing the progs support.
This patch will hide the block group tree feature behind experimental flag for the following tools:
Quoted 6 lines
- btrfstune
"-b" option to convert to bg tree.- mkfs.btrfs
hide "block-group-tree" feature from both -O (the new default position for all features) and -R (the old, soon to be deprecated one).
The block group tree is going to 6.1, so the progs support will be experimental in 6.0 and enabled no later than 6.1. It might be enabled earlier so we can use the normal build in testing.
Quoted 12 lines · David Sterba
Quoted 11 lines · Qu Wenruo
The block group tree doesn't yet have full bi-directional conversion support from btrfstune, and it seems we may want one or two release cycles to rule out some extra bugs before really releasing the progs support.
This patch will hide the block group tree feature behind experimental flag for the following tools:
- btrfstune
"-b" option to convert to bg tree.
Quoted 7 lines
Quoted 3 lines
- mkfs.btrfs
hide "block-group-tree" feature from both -O (the new default position for all features) and -R (the old, soon to be deprecated one).The block group tree is going to 6.1, so the progs support will be experimental in 6.0 and enabled no later than 6.1. It might be enabled earlier so we can use the normal build in testing.
Personally speaking, I'd hope bg tree would be hidden behind experimental until the bi-directional convert is implemented.
(AKA, I should finish the remaining part of the btrfstune for bg tree)
Thanks,
Qu
Quoted 19 lines · Qu Wenruo
Quoted 16 lines · David Sterba
Quoted 14 lines · Qu Wenruo
The block group tree doesn't yet have full bi-directional conversion support from btrfstune, and it seems we may want one or two release cycles to rule out some extra bugs before really releasing the progs support.
This patch will hide the block group tree feature behind experimental flag for the following tools:
- btrfstune
"-b" option to convert to bg tree.- mkfs.btrfs
hide "block-group-tree" feature from both -O (the new default position for all features) and -R (the old, soon to be deprecated one).
Quoted 6 lines
Quoted 3 lines
The block group tree is going to 6.1, so the progs support will be experimental in 6.0 and enabled no later than 6.1. It might be enabled earlier so we can use the normal build in testing.
Personally speaking, I'd hope bg tree would be hidden behind experimental until the bi-directional convert is implemented.
As with other new features we need a stabilization period, mkfs support is the first step and the user space tools should provide feature parity in the same release number at the latest.
That we have the btrfstune to do the conversions is a nice to have that we do want to have eventually because we know that the bg tree will solve slow mounts on large filesystems. So the experimental status for btrfstune is fine, but not for mkfs.