Bug 510677 - resizing btrfs volume/partition size doesn't work correctly
Summary: resizing btrfs volume/partition size doesn't work correctly
Status: REPORTED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-16 09:46 UTC by Wren Turkal
Modified: 2025-10-16 18:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wren Turkal 2025-10-16 09:46:14 UTC
SUMMARY
I had four partions on my machine:
* /boot/eft (p1)
* /boot (p2)
* dev 1 of btrfs filesystem (p3)
* dev 2 of btrfs filesystem (p4)

I removed the p4 device from my btrfs filesystem using the `btrfs device remove ...` command. I then tried to use Partition Manager to delete the p4 partition and resize the p3 partition to use the free space. What was queued for work appears to show that the btfs partition was not located in front of two other partitions on the driver (/boot and /boot/efi mounts).

I didn't click to apply the change, so I am not sure what it would have done. 


STEPS TO REPRODUCE
1. Open Partition Manager
2. Remove p4 dev with `btrfs device remove ...`
3. Refresh devices in PM
4. Remove p4 partiion.
5. Apply. (This works so far.)
6. Resize p3 partition to end of drive.

OBSERVED RESULT

GUI shows p3 partiion in front of p1 and p2.

I have no idea what happens if I apply at this point.

EXPECTED RESULT

p1 and p2 are untouched. P3 is resized to end of drive and btrfs filesystem is expanded to fill that space.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44  <-- This is Rawhnide
KDE Plasma Version: 6.4.91
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.18.0-0.rc1.16.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 32 GiB of RAM (31.1 GiB usable)
Graphics Processor: Intel® Iris® Xe Graphics
Comment 1 Andrius Štikonas 2025-10-16 18:21:24 UTC
Maybe you can paste output of sudo sfdisk --json deviceNode (possibly sudo sfdisk --json /dev/sda but depends on your system)
Comment 2 Wren Turkal 2025-10-16 18:59:33 UTC
The system is no longer in the state. I finished the partition changes with gparted, so I can't get you the state at the time of the problem.