Bugzilla – Bug 1222963
btrfs option --delete-qgroup unreliable
Last modified: 2024-05-09 10:44:53 UTC
The btrfs option --delete-qgroup when deleting subvolumes is unreliable: # btrfs subvolume create /test1/yls Create subvolume '/test1/yls' # btrfs quota rescan --wait /test1 quota rescan started # btrfs subvolume delete --delete-qgroup /test1/yls Delete subvolume 4804 (no-commit): '/test1/yls' WARNING: unable to delete qgroup 0/0: Device or resource busy Note: The qgroup in the warning is also wrong.
The design of --delete-qgroup doesn't take all the challenges of qgroup into consideration. In fact, for most cases that options would not work at all. I'm even considering reverting those patches.
Yeah, the option does not work as expected and will be removed upstream.
The option has been removed in released btrfs-progs 6.8.1. There's work in progress to do the deletion properly, either in kernel in or in progs.