You are not logged in.
I'm trying to delete a subvolume, but I'm getting the error message `ERROR: Could not destroy subvolume/snapshot: Directory not empty`. I understand that the most common cause for this is there is another subvolume contained within the one being deleted. That is not the case here. I've checked with `btrfs sub list` and there are no subvolumes under the one I'm trying to delete. I've checked `dmesg|tail` immediately after making the attempt but there is no output. This isn't a problem at the moment, but I can see how it will eat up space in the future.
Offline
This sounds strange.
My only idea is: I would like to see for myself, the complete commands and output in the terminal.
Also please post an "btrfs sub list /" for an complete overview and an "ls -la" on the problem folder.
Offline
It's possible these days to do rm -rf on a btrfs subvolume to delete it, essentially treating it as a directory. Just like a directory, this requires the right permissions, including being stopped by anything set with chattr +i. Whereas the privileged `sudo btrfs sub del` is only inhibited by the existence of a nested subvolume somewhere.
Offline
I have had this happen before. Somehow, I had gotten something "foreign" (I can't recall exactly what or how), into the subvolume. I just found it and deleted it normally, with rm. Then, the subv delete worked. I'm sorry I can't recall exactly what it was; it was a few years ago.
Offline