Bug 447762

Summary: No support for moving unsupported/unknown partitions with non-integer sizes
Product: [Applications] partitionmanager Reporter: Dominik Adrian Grzywak <starterx4>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 21.12.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dominik Adrian Grzywak 2022-01-01 05:14:46 UTC
SUMMARY
When I choose to move an "unknown" partition with non-integer size (like 16.10 MiB (32968 sectors) or 21.37 MiB (43769 sectors)), Partition Manager decides to resize the partition to the integer size, and when I continue the operation – it fails.
Moving an unsupported partition with integer size doesn't fail, and succeeds.

I also noticed that the integer size enforce applies to the supported partitions as well.


STEPS TO REPRODUCE
1. Have an unsupported/unknown partition (for example, created with gdisk);
2. Try to move it;
3. PM should decide to resize it – continue the operation and see what happens.

OBSERVED RESULT
- Integer partition size enforce affects the unsupported partitions as well.
- PM resizes the partition before moving it.
- Because PM can't resize the partition - it fails.

EXPECTED RESULT
PM should just move the partition, and not try to resize it if it cannot be resized (even better - should let the user decide on it, when the partition is supported).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Screenshots: https://imgur.com/a/4pz7VTR
Comment 1 Andrius Štikonas 2022-01-01 12:00:49 UTC
I guess we could try to exclude unknown partitions from partition alignment.

In other cases (when file system is known) it is resized because that's what you enabled in your settings (partition alignment is a setting there but on by default).
Comment 2 Dominik Adrian Grzywak 2022-01-01 15:23:22 UTC
(In reply to Andrius Štikonas from comment #1)
> I guess we could try to exclude unknown partitions from partition alignment.
> 
> In other cases (when file system is known) it is resized because that's what
> you enabled in your settings (partition alignment is a setting there but on
> by default).

When I uncheck the partition alignment for unknown partition, it still tries to shrink it.