Bug 1176108

Summary: Warning shown on BTRFS partition because of missing btrfs-tools package
Product: [Fedora] Fedora Reporter: Patrick O'Callaghan <poc>
Component: gpartedAssignee: Mukundan Ragavan <nonamedotc>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 21CC: dakingun, mike.fleetwood, nonamedotc
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-28 23:45:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
gparted handling btrfs
none
Gparted main window
none
Gparted warning pop-up none

Description Patrick O'Callaghan 2014-12-19 12:43:54 UTC
Description of problem:
A BTRFS partition shows a warning triangle. Right-click on the line pops up the following error message:

Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for btrfs file system support:  btrfs-tools.

However there is no btrfs-tools package in the standard Fedora repo. There is a btrfs-progs package, which is already installed. It's unclear whether this is a real error or simply a mismatched package name.

Version-Release number of selected component (if applicable):
gparted-0.18.0-3.fc21.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Fire up gparted
2.See warning triangle on BTRFS partition
3.Attempt to get explanation for warning

Actual results:
Error message (see above)

Expected results:
Explanation for error, or no warning triangle.

Additional info:
BTRFS partition created at install time when F20 was released. Recently upgraded to F21. The warning may already have been present but I hadn't noticed it before now.

Comment 1 Mukundan Ragavan 2014-12-21 20:04:24 UTC
Created attachment 971781 [details]
gparted handling btrfs

That's really weird. I do not see this at all here. :(

See screenshot attached.

Comment 2 Mukundan Ragavan 2014-12-21 20:06:52 UTC
Nevertheless, I submitted a more recent version as an update

https://admin.fedoraproject.org/updates/FEDORA-2014-17362/gparted-0.19.1-3.fc21

Could you try that and see if this issues is fixed?

In my case,

# rpm -qa gparted btrfs*
gparted-0.18.0-3.fc21.x86_64
btrfs-progs-3.17-1.fc21.x86_64


and


# rpm -qa gparted btrfs*
gparted-0.19.1-3.fc21.x86_64
btrfs-progs-3.17-1.fc21.x86_64

Comment 3 Patrick O'Callaghan 2014-12-21 20:18:57 UTC
(In reply to Mukundan Ragavan from comment #2)
> Nevertheless, I submitted a more recent version as an update
> 
> https://admin.fedoraproject.org/updates/FEDORA-2014-17362/gparted-0.19.1-3.
> fc21
> 
> Could you try that and see if this issues is fixed?
> 
> In my case,
> 
> # rpm -qa gparted btrfs*
> gparted-0.18.0-3.fc21.x86_64
> btrfs-progs-3.17-1.fc21.x86_64
> 
> 
> and
> 
> 
> # rpm -qa gparted btrfs*
> gparted-0.19.1-3.fc21.x86_64
> btrfs-progs-3.17-1.fc21.x86_64

Tried it but got the same result, i.e. the same message on the same partition.

Comment 4 Mukundan Ragavan 2014-12-21 20:26:48 UTC
That's unfortunate. Considering, I am unable to reproduce this both VM and bare metal, I am inclined to report this upstream.

Would you be able to open an upstream bug or would you prefer that I do?

Comment 5 Patrick O'Callaghan 2014-12-22 12:45:20 UTC
(In reply to Mukundan Ragavan from comment #4)
> That's unfortunate. Considering, I am unable to reproduce this both VM and
> bare metal, I am inclined to report this upstream.
> 
> Would you be able to open an upstream bug or would you prefer that I do?

I'd prefer that you do it. I'm only a very occasional user of gparted so this doesn't affect me too much. Of course the day I actually *need* to access a BTRFS partition it would be nice if it worked :-)

Comment 6 Mukundan Ragavan 2014-12-23 01:15:31 UTC
No problems. I will file an upstream bug and see what they think ... Can you attach a screenshot of what you see so that I can use it on the upstream bug report?

Thanks!

Comment 7 Patrick O'Callaghan 2014-12-23 16:42:34 UTC
Created attachment 972456 [details]
Gparted main window

Shows warning flag on BTRFS filesystem.

Comment 8 Patrick O'Callaghan 2014-12-23 16:43:51 UTC
Created attachment 972457 [details]
Gparted warning pop-up

Warning on right-clicking for Info on flagged BTRFS filesystem.

Comment 9 Mukundan Ragavan 2014-12-28 19:46:46 UTC
Thank you! I will add the external bug here as soon as I open it.

Comment 10 Mike Fleetwood 2015-07-24 22:15:13 UTC
The btrfs-tools / btrfs-progs package name question is simply because
different distributions name the package differently and the GParted
code chose to use the btrfs-tools name.  This is not relevant for your
bug.

Looking at your main window screen shot, I see that there are 2
partitions /dev/sda2 and /dev/sda7 with the same label.  I therefore
assume that this is the same btrfs file system on 2 devices.  GParted
didn't handle multi-device btrfs file systems correctly until version
0.20.0.

Reference:
GParted resizes the wrong filesystem (does not pass the devid to btrfs filesystem resize)
https://bugzilla.gnome.org/show_bug.cgi?id=723842

I see Fedora 21 has since updated to GParted 0.20.0.  You should update
to the latest GParted and repeat your test.  I expect it will work now.

Thanks,
Mike Fleetwood (GParted Developer)

Comment 11 Patrick O'Callaghan 2015-07-25 12:39:22 UTC
(In reply to Mike Fleetwood from comment #10)
> The btrfs-tools / btrfs-progs package name question is simply because
> different distributions name the package differently and the GParted
> code chose to use the btrfs-tools name.  This is not relevant for your
> bug.
> 
> Looking at your main window screen shot, I see that there are 2
> partitions /dev/sda2 and /dev/sda7 with the same label.  I therefore
> assume that this is the same btrfs file system on 2 devices.  GParted
> didn't handle multi-device btrfs file systems correctly until version
> 0.20.0.
> 
> Reference:
> GParted resizes the wrong filesystem (does not pass the devid to btrfs
> filesystem resize)
> https://bugzilla.gnome.org/show_bug.cgi?id=723842
> 
> I see Fedora 21 has since updated to GParted 0.20.0.  You should update
> to the latest GParted and repeat your test.  I expect it will work now.
> 
> Thanks,
> Mike Fleetwood (GParted Developer)

Checked again (with gparted 0.22.0) and it now works. Many thanks.

Comment 12 Patrick O'Callaghan 2015-07-25 12:39:40 UTC
(In reply to Mike Fleetwood from comment #10)
> The btrfs-tools / btrfs-progs package name question is simply because
> different distributions name the package differently and the GParted
> code chose to use the btrfs-tools name.  This is not relevant for your
> bug.
> 
> Looking at your main window screen shot, I see that there are 2
> partitions /dev/sda2 and /dev/sda7 with the same label.  I therefore
> assume that this is the same btrfs file system on 2 devices.  GParted
> didn't handle multi-device btrfs file systems correctly until version
> 0.20.0.
> 
> Reference:
> GParted resizes the wrong filesystem (does not pass the devid to btrfs
> filesystem resize)
> https://bugzilla.gnome.org/show_bug.cgi?id=723842
> 
> I see Fedora 21 has since updated to GParted 0.20.0.  You should update
> to the latest GParted and repeat your test.  I expect it will work now.
> 
> Thanks,
> Mike Fleetwood (GParted Developer)

Checked again (with gparted 0.22.0) and it now works. Many thanks.