Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331121 - sys-fs/btrfs-progs-0.19: btrfsctl missing -D option
Summary: sys-fs/btrfs-progs-0.19: btrfsctl missing -D option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Joe Peterson (RETIRED)
URL: https://btrfs.wiki.kernel.org/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 20:55 UTC by chester moy
Modified: 2010-08-17 16:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chester moy 2010-08-03 20:55:18 UTC
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
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-08-06 08:44:16 UTC
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
Comment 2 chester moy 2010-08-06 10:12:12 UTC
(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
Comment 3 Joe Peterson (RETIRED) gentoo-dev 2010-08-06 16:18:10 UTC
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.
Comment 4 chester moy 2010-08-07 05:12:40 UTC
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.
Comment 5 Joe Peterson (RETIRED) gentoo-dev 2010-08-07 06:03:32 UTC
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.
Comment 6 chester moy 2010-08-08 10:43:53 UTC
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
Comment 7 Joe Peterson (RETIRED) gentoo-dev 2010-08-17 16:21:59 UTC
Now using patch from RedHat (from Josef) in -r1.