gparted ignores devid for btrfs filesystem

Bug #1512116 reported by Rolf Leggewie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gparted (Debian)
Fix Released
Unknown
gparted (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I used gparted to move and resize one of my partitions. The partition in question uses btrfs. The verification step failed because gparted does not specify the devid (something specific to btrfs it seems). "sudo btrfs filesystem resize max /tmp/gparted-h9AlSk" is the command line that was used and failed where it should have been "sudo btrfs filesystem resize 2:max /tmp/gparted-h9AlSk".

TEST CASE:
1) get or create a disk with a btrfs filesystem that has a different devid than 1. Easiest way is probably to create two btrfs partitions.
2) start gparted
3) Run "Partition - Check" on the partition with a devid different from 1.

The partition check will fail because btrfs assumes devid to be 1 if none is specified (as documented in "man btrfs").

       filesystem resize [devid:][+/-]<size>[gkm]|[devid:]max <path>
              Resize a filesystem identified by <path> for the underlying
              device devid. The devid can be found with btrfs filesystem
              show and defaults to 1 if not specified.

Tags: trusty
Rolf Leggewie (r0lf)
description: updated
description: updated
description: updated
Revision history for this message
Curtis Gedak (gedakc) wrote :

Thank you Rolf for your interest in improving GParted.

This problem was fixed upstream in GParted 0.20.0. See the following upstream bug report:

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

The latest version of GParted at time of writing is 0.24.0. Unfortunately the versions packaged in Ubuntu are quite old.

Changed in gparted (Debian):
status: Unknown → Confirmed
Revision history for this message
Phillip Susi (psusi) wrote :

This has been fixed in version 0.24.0, now in xenial.

Changed in gparted (Ubuntu):
status: New → Fix Released
Changed in gparted (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.