Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 464054

Summary: sys-fs/btrfs-progs - subvol get-default does not work
Product: Gentoo Linux Reporter: Ulf Dambacher <ulf.dambacher>
Component: [OLD] Core systemAssignee: Mike Gilbert <floppym>
Status: RESOLVED OBSOLETE    
Severity: normal CC: leho, slyfox
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-progs.git/commit/?id=a0bdde58f840b47c6a4a7f2c8766706a44562cae
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: working patch adapted from upstrem patch (removed fizz)

Description Ulf Dambacher 2013-04-01 08:39:00 UTC
in btrfs-0.19.11 issuing the command "btrfs subvol get-default" does the same as "btrfs subvol list"
an upstream patch exists, see additional infos
in btrfs-0.20-rc1 the issue is solved but this ebuild is masked


Reproducible: Always

Steps to Reproduce:
1. execute "btrfs subvol list /"
2. execute "btrfs subvol get-default /"

Actual Results:  
# btrfs subvol list /
ID 256 top level 5 path home
ID 257 top level 5 path root-old
ID 261 top level 5 path home-20130329
ID 262 top level 5 path root-20130329
ID 263 top level 5 path root

# btrfs-subvol get-defailt /
ID 256 top level 5 path home
ID 257 top level 5 path root-old
ID 261 top level 5 path home-20130329
ID 262 top level 5 path root-20130329
ID 263 top level 5 path root



Expected Results:  
# btrfs subvol list /
ID 256 top level 5 path home
ID 257 top level 5 path root-old
ID 261 top level 5 path home-20130329
ID 262 top level 5 path root-20130329
ID 263 top level 5 path root

# btrfs subvol get-default /
ID 263 top level 5 path root


upstream patch:
http://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-progs.git/commit/?id=a0bdde58f840b47c6a4a7f2c8766706a44562cae
Comment 1 Ulf Dambacher 2013-04-01 08:42:14 UTC
Created attachment 343904 [details, diff]
working patch adapted from upstrem patch (removed fizz)

this is a patch made after the upstrem patch wich has one reject i manually fixed.
it works for me.
Comment 2 Leho Kraav (:macmaN @lkraav) 2013-07-26 00:08:15 UTC
btrfs-progs-0.20_rc1_p56 is long time ago keyworded, should this be closed?
Comment 3 Ulf Dambacher 2014-01-12 09:39:43 UTC
as of 20130112 it works for new grub and btrfs-progs.
I will close this bug.