Btrfsctl, the goto tool for btrfs management is missing the -D option which deletes a given subvolume. The option is listed in the Wiki and was also present in other distributions, but not available in the copy available in portage. Reproducible: Always Steps to Reproduce: 1. emerge btrfs-progs 2. mount a btrfs volume 3. create a subvolume or snapshot using btrfsctl Now, there is no way to delete the snapshot or subvolume Actual Results: btrfsctl states that no valid commands were given Expected Results: btrfsctl -D subvolume dir should delete the given subvolume
Hello, can you please post a reference to this option as URL of this bug, Which version of sys-fs/btrfs-progs do you use? Please paste `emerge -pv sys-fs/btrfs-progs` as a comment. Thanks, Michael
(In reply to comment #1) > Hello, > > can you please post a reference to this option as URL of this bug, > Which version of sys-fs/btrfs-progs do you use? > Please paste `emerge -pv sys-fs/btrfs-progs` as a comment. > > Thanks, Michael > emerge -pv: [ebuild R ] sys-fs/btrfs-progs-0.19 USE="acl -debug-utils" 0 kB Also, added the URL to the btrfs wiki page on kernel.org
It appears that this is a post 0.19 feature. And 0.19 is the "latest", although it is quite old (13 months). I need to find out what the status is from upstream, since we really need to follow their releases. Can you tell me what other distros support -D, and I'll go see how they managed this.
The other distro that had the option was Fedora. I'm actually switching to gentoo from Fedora (13), so i thought it came standard in the current btrfs tools.
It looks like Fedora's maintainer of btrfs-progs is Josef Bacik (from RedHat Linux), who is one of the btrfs developers, so I suspect he has inserted a "newer" version of 0.19 (i.e. newer than the official tagged 0.19 version) in that distro. I'll contact Josef and see if I can find out what version that so that Gentoo can get the latest version as well.
Thanks for your work and enthusiasm. I appreciate the fact that you're willing to make a (later than 'latest') version of btrfsctl for Gentoo
Now using patch from RedHat (from Josef) in -r1.