Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHandle cgroups when subvolumes/snapshots are deleted when quota support is enabled. #49
Comments
|
First of all, let me say that I don't have much experience with btrfs qgroups, so I'll need your help here. As far as I see from the documentations, qgroups are deleted like this:
For a subvolume with ID=123 ("Subvolume ID" from
Can you tell me what exactly the |
|
Thanks for the quick response. I am not that expierenced using qgroups either and it seems there is not a lot of documentation out there.
any path, e.g. "." works. I guess it can be just anywhere within a btrfs filesystem. |
|
I added a qgroup branch, with preliminary experimental support for destroying qgroups: New configuration options:
This is not yet tested. @friederschueler: could you please look at https://github.com/digint/btrbk/blob/qgroup/btrbk, run it with
and tell me what happens when you execute the |
|
Works like a charm! Thanks for the quick added feature. I tested with dryrun and debug on and checked the commands. They looked good and the normal run deleted all the unnecessary groups without any problems. I only tested snapshot_qgroup_destroy. |
|
Great! I will not merge this branch to master unless I have the time to experiment with btrfs quotas myself, since I simply cannot tell if this feature could possibly destroy unwanted things for people making heavy use of quotas. Can you tell me if a qgroup "0/id" is also created on a |
|
Hello, I've been using the qgroup branch successfully for months now; it's really helped keep my subvolume list cleaner. However, it looks like that branch hasn't received update merges in a while. I was wondering if support has been dropped for qgroups, or alternatively if it might get merged into master at some point? Thanks a lot for all your great work! |
|
Thanks a lot for the merge! I've been running it for a few days and it looks like it everything's working as expected. I appreciate the help. |
|
Merged "qgroup" branch (now obsolete) to master, with some adaptions: e9a517f |
|
included in btrbk-0.26.0 |
Hello,
I have enabled quota support and btrfs creates a qgroup with id 0/{subvolid} whenever a subvolume is created. But this qgroup is not deleted when the subvolume is deleted. Could you add an option to delete the correct qgroup when the subvolume is deleted?