fsck fails on btrfs using lzo

Bug #777478 reported by hper yvot
74
This bug affects 16 people
Affects Status Importance Assigned to Milestone
btrfs-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: btrfs-tools

fsck fails on btrfs after mounting with lzo.
i simply describe how to reproduce the bug:

create new file system
> mkfs.btrfs /dev/sda4
WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using

fs created label (null) on /dev/sda4
        nodesize 4096 leafsize 4096 sectorsize 4096 size 1.89GB
Btrfs Btrfs v0.19

check if everything is ok
> fsck /dev/sda4
fsck from util-linux-ng 2.17.2
found 28672 bytes used err is 0
total csum bytes: 0
total tree bytes: 28672
total fs tree bytes: 8192
btree space waste bytes: 23875
file data blocks allocated: 0
 referenced 0
Btrfs Btrfs v0.19

test, if normal mounting has an effect
> mount /dev/sda4 /media/cdrom0
> umount /media/cdrom0
> fsck /dev/sda4
fsck from util-linux-ng 2.17.2
found 28672 bytes used err is 0
total csum bytes: 0
total tree bytes: 28672
total fs tree bytes: 8192
btree space waste bytes: 23875
file data blocks allocated: 0
 referenced 0
Btrfs Btrfs v0.19

everything was ok, now i tried just mounting using lzo, resulting in the following error message. (which leads to a non booting system in case of var and fstab-option pass)
> mount -o compress=lzo /dev/sda4 /media/cdrom0
> umount /media/cdrom0
> fsck /dev/sda4
fsck from util-linux-ng 2.17.2
couldn't open because of unsupported option features (8).
fsck.btrfs: disk-io.c:683: open_ctree_fd: Assertion `!(1)' failed.
Warning... fsck.btrfs for device /dev/sda4 exited with signal 6.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: btrfs-tools 0.19+20100601-3ubuntu2
ProcVersionSignature: User Name 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Thu May 5 00:41:22 2011
ProcEnviron:
 LANGUAGE=de_DE:en
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: btrfs-tools
UpgradeStatus: Upgraded to natty on 2011-04-28 (5 days ago)

Revision history for this message
hper yvot (hperyvot) wrote :
Revision history for this message
AvitarX (ddwornik) wrote :

I have the same problem, but it is only on one of my disks.

I have an internal disk that is an SSD, and is mounted with SSD, and LZO compression, it does not flag an error.

My external disk (USB 3.0, spinning disk), is mounted with LZO compression, and does flag the error.

Changed in btrfs-tools (Ubuntu):
status: New → Confirmed
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.