can only mount btrfs filesystems with standard crc32c checksum, fails with xxhash, sha256
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
btrfs-progs (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I created a new btrfs filesystem like the following:
sudo mkfs.btrfs -L cold_storage -f --csum xxhash /dev/sdd1
Mounting it with:
sudo mount /dev/sdb1 /mnt/cold_storage
Fails with the message:
mount: /mnt/cold_storage: wrong fs type, bad option, bad superblock on /dev/sdd1, missing codepage or helper program, or other error.
Looking at dmesg | tail I can find the following:
[ 1788.813725] BTRFS error (device sdd1): unsupported checksum algorithm: 1
[ 1788.836552] BTRFS error (device sdd1): open_ctree failed
The error is the same for the xxhash and sha256 checksums. Only recreating the filesystem with crc32c / omitting the --csum option entirely allows me to mount it afterwards. I tried mounting with and without compression enabled, no difference.
My System:
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
uname -a
Linux pentiumpower 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
btrfs version
btrfs-progs v5.4.1
apt-cache policy btrfs-progs
btrfs-progs:
Installiert: 5.4.1-2
Installations
Versionstabelle:
*** 5.4.1-2 500
500 http://
100 /var/lib/
Status changed to 'Confirmed' because the bug affects multiple users.