public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] btrfs-progs: add block-group-tree to the default mkfs/convert features
@ 2025-11-27  7:33 Qu Wenruo
  2025-11-27  7:33 ` [PATCH v2 1/3] btrfs-progs: disable block-group-tree feature if dependency is missing Qu Wenruo
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Qu Wenruo @ 2025-11-27  7:33 UTC (permalink / raw)
  To: linux-btrfs

[CHANGELOG]
v2:
- Automatically remove bgt feature when dependent feature is missing
  Instead of erroring out. This will allow us to run the existing
  no-holes/v1 free space cache test cases without any modification.

I was planning to do this during v6.12 but forgot it and now the next
LTS kernel release is not that far away, it's finally time to make the
switch.

The first patch is to change mkfs/btrfs-convert from rejecting
"bgt,^no-holes" to disabling bgt when no-holes/fst feature is not
selected.
This allows the existing "mkfs.btrfs ^no-holes" to be executed without
extra modification.

The second patch is a large page-size specific fix, where on 64K page
size systems misc/057 will fail due to subpage mounts always enable v2
free space cache, resulting later conversion failure to fst (as it's
already fst).

The final patch is the one enabling new default block-group-tree feature
for mkfs and convert.

Qu Wenruo (3):
  btrfs-progs: disable block-group-tree feature if dependency is missing
  btrfs-progs: misc-tests: check if free space tree is enabled after
    mount
  btrfs-progs: add block-group-tree to the default mkfs features

 Documentation/mkfs.btrfs.rst                           |  7 ++++++-
 common/fsfeatures.c                                    |  2 +-
 common/fsfeatures.h                                    |  3 ++-
 convert/main.c                                         |  4 ++--
 mkfs/main.c                                            | 10 +++++++---
 tests/misc-tests/057-btrfstune-free-space-tree/test.sh |  8 ++++++++
 6 files changed, 26 insertions(+), 8 deletions(-)

--
2.52.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-02  4:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27  7:33 [PATCH v2 0/3] btrfs-progs: add block-group-tree to the default mkfs/convert features Qu Wenruo
2025-11-27  7:33 ` [PATCH v2 1/3] btrfs-progs: disable block-group-tree feature if dependency is missing Qu Wenruo
2025-11-27  7:33 ` [PATCH v2 2/3] btrfs-progs: misc-tests: check if free space tree is enabled after mount Qu Wenruo
2025-11-27  7:33 ` [PATCH v2 3/3] btrfs-progs: add block-group-tree to the default mkfs features Qu Wenruo
2025-12-02  1:21 ` [PATCH v2 0/3] btrfs-progs: add block-group-tree to the default mkfs/convert features Nicholas D Steeves
2025-12-02  4:09   ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox