Package: gparted
Version: 0.19.0-2
Severity: normal
Tags: upstream

Dear Maintainer,

When resizing a btrfs partition that does not have devid 1 (e.g. when you add a
second partition in a RAID1 configuration) GParted does not resize the right
partition.

This issue has been reported upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=723842

The issue is that GParted uses a command like this:

    btrfs filesystem resize 1921211392K /tmp/gparted-Hh2WsW

While the man page for btrfs filesystem resize specifies:

    resize [<devid>:]<size>[gkm]|[<devid>:]max <path>

    [...]
    The devid can be found with btrfs filesystem show and defaults to 1 if not
specified. [...]

So the devid is missing and 1 is used. In my case, devid 2 was needed making
the command fail:

    Resize '/tmp/gparted-Hh2WsW' of '1921211392K'
    ERROR: unable to resize '/tmp/gparted-Hh2WsW' - File too large

Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/1512116



-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gparted depends on:
ii  libatkmm-1.6-1        2.22.7-2.1
ii  libc6                 2.19-18+deb8u1
ii  libgcc1               1:4.9.2-10
ii  libglib2.0-0          2.42.1-1
ii  libglibmm-2.4-1c2a    2.42.0-1
ii  libgtk2.0-0           2.24.25-3
ii  libgtkmm-2.4-1c2a     1:2.24.4-1.1
ii  libpangomm-1.4-1      2.34.0-1.1
ii  libparted-fs-resize0  3.2-7
ii  libparted2            3.2-7
ii  libsigc++-2.0-0c2a    2.4.0-1
ii  libstdc++6            4.9.2-10
ii  libuuid1              2.25.2-6

gparted recommends no packages.

Versions of packages gparted suggests:
ii  dmraid         1.0.0.rc16-5
ii  dmsetup        2:1.02.90-2.2
ii  dosfstools     3.0.27-1
pn  gpart          <none>
pn  jfsutils       <none>
ii  kpartx         0.5.0-6+deb8u1
ii  mtools         4.0.18-2
ii  ntfs-3g        1:2014.2.15AR.2-1+deb8u2
pn  reiser4progs   <none>
pn  reiserfsprogs  <none>
pn  xfsprogs       <none>
ii  yelp           3.14.1-1

-- no debconf information

Reply via email to