Bug 502291 - Inconsistent ui state for resizing partition if original partition is unaligned
Summary: Inconsistent ui state for resizing partition if original partition is unaligned
Status: REPORTED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: 24.12.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-01 15:56 UTC by federico
Modified: 2025-04-01 15:56 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 federico 2025-04-01 15:56:03 UTC
I had an unaligned partition (in my case i had first sector 2048 and last sector 1953525134) and wanted to align it by resizing it.
In the advanced settings, the "Align" checkbox is selected, but the value of the end of the partition was not correct for creating an aligned partition (it was the original value of the current partition, unchanged).
After deselecting and selecting the alignment checkbox, the value changed to another one (from 1953525134 to 1953523711), which would have lead to an aligned partition

STEPS TO REPRODUCE
1. find an unaligned partition 
2. click on resize
3. open the advanced settings
4. verify that checkbox aligned is selected, but the value in the dialog would lead to an unaligned partition

OBSERVED RESULT
see description

EXPECTED RESULT
The UI seems to be in an inconsistent state.
I guess that the best way to solve it would be to show a warning that the partition is not aligned, and explain that either the user deselects the checkbox, or the last sector will be changed accordingly.
I do not know (because I did not have the patience to test it) what would have happened if I did not toggle the checkbox twice.
Would it have tried to create an unaligned partition of the indicated size, or would it have created an aligned partition of another size?