linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Non-existent qgroup in parent-child relation prevents makes qgroup commands fail
@ 2019-08-02 18:08 Andrei Borzenkov
  2019-08-02 23:09 ` Qu Wenruo
  0 siblings, 1 reply; 6+ messages in thread
From: Andrei Borzenkov @ 2019-08-02 18:08 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

bor@tw:~> sudo btrfs qgroup show .
ERROR: cannot find the qgroup 0/789
bor@tw:~>

Fine. This openSUSE with snapper which creates and automatically
destroys snapshots and apparently either kernel or snapper now also
remove corresponding qgroup. I played with snapshots and created several
top level qgroups that included snapshot qgroups existing at this time.
Now these snapshots are gone, their qgroups are gone ... and what can I
do? I have no way to even know what is wrong because the very command
that shows it fails immediately.

bor@tw:~/python-btrfs/examples> sudo ./show_tree_keys.py 8 . | grep 0/789
(0/789 QGROUP_RELATION 2/792)
(0/789 QGROUP_RELATION 2/793)
(0/789 QGROUP_RELATION 2/795)
(0/789 QGROUP_RELATION 2/799)
(0/789 QGROUP_RELATION 2/800)
(0/789 QGROUP_RELATION 2/803)
(0/789 QGROUP_RELATION 2/804)
(0/789 QGROUP_RELATION 2/805)
(0/789 QGROUP_RELATION 2/806)
(0/789 QGROUP_RELATION 2/807)
(0/789 QGROUP_RELATION 2/808)
(0/789 QGROUP_RELATION 2/809)
(0/789 QGROUP_RELATION 2/814)
(0/789 QGROUP_RELATION 2/818)
(0/789 QGROUP_RELATION 2/819)
(2/792 QGROUP_RELATION 0/789)
(2/793 QGROUP_RELATION 0/789)
(2/795 QGROUP_RELATION 0/789)
(2/799 QGROUP_RELATION 0/789)
(2/800 QGROUP_RELATION 0/789)
(2/803 QGROUP_RELATION 0/789)
(2/804 QGROUP_RELATION 0/789)
(2/805 QGROUP_RELATION 0/789)
(2/806 QGROUP_RELATION 0/789)
(2/807 QGROUP_RELATION 0/789)
(2/808 QGROUP_RELATION 0/789)
(2/809 QGROUP_RELATION 0/789)
(2/814 QGROUP_RELATION 0/789)
(2/818 QGROUP_RELATION 0/789)
(2/819 QGROUP_RELATION 0/789)
bor@tw:~/python-btrfs/examples>

And even if I find it out, I cannot fix it anyway

bor@tw:~/python-btrfs/examples> sudo btrfs qgroup remove 0/789 2/792 .
ERROR: unable to assign quota group: Invalid argument
bor@tw:~/python-btrfs/examples>

I can remove parent qgroup, but it does not clean up parent-child
relationship

bor@tw:~/python-btrfs/examples> sudo btrfs qgroup destroy 2/792 .
bor@tw:~/python-btrfs/examples> sudo ./show_tree_keys.py 8 . | grep 2/792
(0/789 QGROUP_RELATION 2/792)
(2/792 QGROUP_RELATION 0/789)
bor@tw:~/python-btrfs/examples>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-03  7:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-02 18:08 Non-existent qgroup in parent-child relation prevents makes qgroup commands fail Andrei Borzenkov
2019-08-02 23:09 ` Qu Wenruo
2019-08-03  5:31   ` Andrei Borzenkov
2019-08-03  6:17     ` Qu Wenruo
2019-08-03  6:49       ` Andrei Borzenkov
2019-08-03  7:03         ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).