Bug 1027180 - btrfs-progs: btrfs subvolume get-default <mnt> return 1 even if command exit with no error
Summary: btrfs-progs: btrfs subvolume get-default <mnt> return 1 even if command exit ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: btrfs-progs
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact: Filesystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-06 10:35 UTC by Eryu Guan
Modified: 2014-02-19 02:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-19 02:33:17 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Eryu Guan 2013-11-06 10:35:33 UTC
Description of problem:
[root@hp-dl388eg8-01 mount]# mount | grep /mnt/scratch
/dev/loop0 on /mnt/scratch type btrfs (rw,relatime,seclabel,space_cache)
[root@hp-dl388eg8-01 mount]# btrfs subvolume get-default /mnt/scratch
ID 5 (FS_TREE)
[root@hp-dl388eg8-01 mount]# echo $?
1   <==== should be 0

Seems like a regression, I haven't seen this before.

Version-Release number of selected component (if applicable):
btrfs-progs-0.20.rc1.20130917git194aa4a-1.el7

How reproducible:
always

Steps to Reproduce:
1. mount a btrfs at /mnt
2. btrfs subvolume get-default /mnt
3. echo $?

Actual results:
return value is 1

Expected results:
return value should be 0

Additional info:

Comment 2 Eric Sandeen 2014-02-18 20:37:46 UTC
Eryu, since you have this in an RHTS test, do you know if it's still failing w/ the btrfs-progs rebase?

Also, moving to rhel7.1 for now, this just isn't that critical.

Thanks,
-Eric

Comment 4 Eryu Guan 2014-02-19 02:33:17 UTC
It's fixed in btrfs-progs-3.12-4.el7, closed it as CURRENTRELEASE.


Note You need to log in before you can comment on or make changes to this bug.