diff options
author | David Sterba <dsterba@suse.com> | 2022-10-26 08:58:23 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-10-26 09:21:35 +0200 |
commit | 701ab151c2b602df006b02a03c0218115da26912 (patch) | |
tree | 485ee2081ab2e4f418560a0ded04318b0cc8b0e5 /Documentation | |
parent | 6f11a702158a9219409ac2b3341d4a0524479812 (diff) | |
download | btrfs-progs-701ab151c2b602df006b02a03c0218115da26912.tar.gz |
btrfs-progs: qgroup: new command to delete stale qgroups
A stale qgroup is level 0 and without a corresponding subvolume. There's
no convenient command for removing them and kernel does not remove them
automatically. Add a command so users don't have to parse and script the
output and/or delete them manually.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/btrfs-qgroup.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/btrfs-qgroup.rst b/Documentation/btrfs-qgroup.rst index 6ff54079..f4c59b71 100644 --- a/Documentation/btrfs-qgroup.rst +++ b/Documentation/btrfs-qgroup.rst @@ -70,6 +70,11 @@ destroy <qgroupid> <path> If a qgroup is not isolated, meaning it is a parent or child qgroup, then it can only be destroyed after the relationship is removed. +clear-stale <path> + Clear all stale qgroups whose subvolume does not exist anymore, this is the + level 0 qgroup like 0/subvolid. Higher level qgroups are not deleted even + if they don't have any child qgroups. + limit [options] <size>|none [<qgroupid>] <path> Limit the size of a qgroup to *size* or no limit in the btrfs filesystem identified by *path*. |