Bug 183471 - BTRFS progs Unfixable btrfs qgroups with out of memory message
Summary: BTRFS progs Unfixable btrfs qgroups with out of memory message
Status: RESOLVED OBSOLETE
Alias: None
Product: File System
Classification: Unclassified
Component: btrfs (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Josef Bacik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-26 16:18 UTC by kernel
Modified: 2022-10-06 17:35 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.8.4
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description kernel 2016-10-26 16:18:44 UTC
I've been using btrfs on the raspi3 with archlinux arm for some time now and it seems that there is something wrong with the quotas and qgroups. I've used snapper and buttersink which both use quotas and also creates them. The filesystem is on an sd card, so I cannot guarantee that that did not cause the issue, but I think it did not.

The filesystem itself seems to work fine except a few parts:
I cannot create a new quota limit with snapper for my home setting. The operation times out. The btrfs check reports errors about the qgroups and if I list them on the operating device itself they are mostly incorrect.

I am not sure which program caused the issue or if its a kernel bug. However my filesystem seems half broken and I want to find out why and how to fix it. If there is another place where I should report this, let me know.

The output below was made with archlinux x64 and btrfs-progs 4.8.1
The raspi (with the btrfs) runs a 4.4 kernel.

$ sudo btrfs check --repair /dev/mapper/raspi
enabling repair mode
Checking filesystem on /dev/mapper/raspi
UUID: fdadc198-542b-4833-9ec9-e9911fa63f22
Fixed 0 roots.
checking free space cache
checking extentscache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
checking quota groups
ERROR: out of memory
ERROR: Loading qgroups from disk: -2
found 5791219712 bytes used err is 0
total csum bytes: 4858920
total tree bytes: 537247744
total fs tree bytes: 514981888
total extent tree bytes: 15646720
btree space waste bytes: 93926039
file data blocks allocated: 16553922560
 referenced 14326509568
extent buffer leak: start 1027915776 len 16384
extent buffer leak: start 1033617408 len 16384
Comment 1 David Sterba 2022-10-06 17:35:29 UTC
This is a semi-automated bugzilla cleanup, report is against an old kernel version. If the problem still happens, please open a new bug. Thanks.

Note You need to log in before you can comment on or make changes to this bug.