during manual partitioning, the size is off-by-one, this causes unexpected resizing

Bug #1164783 reported by codeslinger
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

13.04 Beta1 UbuntuStudio 64 bit

Run the Installer and choose "Something Else"

on the manual partitioning "Installation Type" screen, choose a partiton and click the [Change] button.

a dialog will open with the current size of the partition and the ability to change that size.

Bug: compare the size that you see in the dialog, to the size of the partition as reported in the main window. The size is off-by-one. see attached screenshot

This causes the partitioner to go into resize mode, even when you do not intend to alter the size.

Furhtermore, even if you change the size in the dialog to be the same as the size in the main window, it still enters resize mode when the dialog is closed. This may be due to a "value changed" flag, or this may be due to the error induced by rounding sectors to the nearest megabyte.

Note: on this computer, the partitons are not track aligned. this might make a difference in this behavior.

Expected:
1) There should not be an off-by-one error

2) The only proper way to decide if a resize is needed is to compare the original value that was placed into the Change dialog, to the value that was returned from the dialog. This comparision must be preformed on the numeric value so as to avoid getting confused by leading zeros and space characters etc. Only if the values are different should the resize action be invoked.

Furthermore it may make sense to limit it to some minmum threshold, does it really make sense to resize a partition by less than N megs? Anything less than 100 megs is probably a mistake.

Revision history for this message
codeslinger (codeslinger) wrote :
description: updated
Changed in ubiquity (Ubuntu):
importance: Undecided → High
tags: added: ubi-partman
tags: added: raring
Revision history for this message
codeslinger (codeslinger) wrote :

perhaps it helps to know that this bug does NOT exist in 12.04

Changed in ubiquity (Ubuntu):
importance: High → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

This bug seems like the same bug as 1218702.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.