Skip to contentSkip to conversation

how to disable block-group-tree feature?

DISCUSSION Wang Yugui 2 participants 2 messages Sep 12, 2022 Btrfs file system

lore
Share & tools
lore

Wang Yugui

author
#0 lore raw

Hi,

Is there any way to disable block-group-tree since it is a runtime feature?

I tried to 'mount -o clear_cache,space_cache=v2' to disable both block-group-tree and fres-space-tree, it failed with the flowing dmesg output.

[ 1400.647031] BTRFS error (device sda1): block-group-tree feature requires fres-space-tree and no-holes
[ 1400.656251] BTRFS error (device sda1): super block corruption detected before writing it to disk
[ 1400.665044] BTRFS: error (device sda1) in write_all_supers:4305: errno=-117 Filesystem corrupted (unexpected superblock corruption detected)
[ 1400.677643] BTRFS warning (device sda1: state E): Skipping commit of aborted transaction.

Best Regards
Wang Yugui ([email protected])
2022/09/12

#1 lore raw
Quoted 4 lines · Wang Yugui

Hi,

Is there any way to disable block-group-tree since it is a runtime feature?

Check the cover-letter before applying them:

[TODO]
- Add btrfstune support to convert from block-group-tree feature The infrastructure is already done.

Quoted 3 lines

I tried to 'mount -o clear_cache,space_cache=v2' to disable both block-group-tree and fres-space-tree,

Nope, no mount option can change bg tree.

Quoted 12 lines

it failed with the flowing dmesg output.

[ 1400.647031] BTRFS error (device sda1): block-group-tree feature requires fres-space-tree and no-holes
[ 1400.656251] BTRFS error (device sda1): super block corruption detected before writing it to disk
[ 1400.665044] BTRFS: error (device sda1) in write_all_supers:4305: errno=-117 Filesystem corrupted (unexpected superblock corruption detected)
[ 1400.677643] BTRFS warning (device sda1: state E): Skipping commit of aborted transaction.

Best Regards
Wang Yugui ([email protected])
2022/09/12