Bug 447762 - No support for moving unsupported/unknown partitions with non-integer sizes
Summary: No support for moving unsupported/unknown partitions with non-integer sizes
Status: CONFIRMED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-01 05:14 UTC by Dominik Adrian Grzywak
Modified: 2024-07-09 19:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.