can only mount btrfs filesystems with standard crc32c checksum, fails with xxhash, sha256

Bug #1949002 reported by Florian Riepen
12
This bug affects 2 people
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
  Installationskandidat: 5.4.1-2
  Versionstabelle:
 *** 5.4.1-2 500
        500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

Tags: focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in btrfs-progs (Ubuntu):
status: New → Confirmed
Revision history for this message
DiagonalArg (diagonalarg) wrote :

Same error on Ubuntu 20.04, except I used sha256 to create the filesystem.

Ken Sharp (kennybobs)
tags: added: focal
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.