Home_greyopenFATE - openSUSE feature tracking > #312273
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Update yast-partitioner GUI to reflect they way it works internally

Feature state

openSUSE Distribution
Rejected Information


Summary Description

yast-partitioner was updated for 11.3 and newer to stop using CHS information as its primary partition alignment strategy.

The user interface was never updated to match.

The user interface for yast2-partitioner should be updated to allow the user to select legacy CHS presentation and the more modern presentation units of sectors / MBs / GBs or other units more appropriate to raid strides.

Original Description

On Fri, Apr 22, 2011 at 08:14, Greg Freemyer <greg.freemyer@gmail.com> wrote:
> Andrew,
> Is there a openfate proposal? They are easy to create. Any opensuse
> user with a login can do it.
> Since this is not a bug, just a functionality change proposal,
> bugzilla is not the right place.
> Greg
> On 4/18/11, Greg Freemyer <greg.freemyer@gmail.com> wrote:
>> On Mon, Apr 18, 2011 at 1:28 PM, Andrew Joakimsen <joakimsen@gmail.com>
>> wrote:
>>> On Mon, Apr 18, 2011 at 06:18, David Haller <dnh@opensuse.org> wrote:
>>>> Hello,
>>>> On Sun, 17 Apr 2011, Andrew Joakimsen wrote:
>>>>>understands what is going on can make sure it is setup properly. There
>>>>>is no formula to convert from cylinders to sectors!
>>>> http://en.wikipedia.org/wiki/Cylinder-head-sector#CHS_to_LBA_mapping
>>>>>This issue is also affecting newer/larger hard drives. And these
>>>>>without a doubt have 4kb sectors but everything in opensuse shows 512
>>>> The _drives_ don't tell their real sector sizes!
>>>> # /sbin/hdparm -I /dev/sdb
>>>> [..]
>>>> Model Number: SAMSUNG HD204UI
>>>> [..]
>>>> LBA48 user addressable sectors: 3907029168
>>>> Logical Sector size: 512 bytes
>>>> Physical Sector size: 512 bytes
>>>> This is what the disk tells via the ATA interface. And yes, that is
>>>> a disk with 4K physical sectors, which is why I partitioned aligned
>>>> to 4K. There is just no way for Yast or any other tool to know. One
>>>> could create a database of 4K-disks reporting 512B sectors though.
>>> Right that's what I said basically and hence my proposal that Yast
>>> shows disks in the relevant unit of "sectors" and not the antiquated
>>> useless term of "cylinders." If you know your disk needs to be aligned
>>> to X size sectors you can calculate it yourself and set it up with no
>>> hassle.
>>> But in the current arragement, since there's no universal formula to
>>> convert cylinders to sectors and yast only shows the former, you need
>>> to e.g. boot a live CD, create your partitions with some clunky 3rd
>>> party tool and then do your installation.
>> If you'll post the openFATE link to your proposal, I'll add my vote.
>> Greg

The current functionality is a bug and I have long ago reported it as such. Disks are addressed by logical sectors this millenium. It's a bug to show an obsolete, not-convertible unit. serves no purpose unit. The fix to that bug is to show the relevant unit.
Med Vennlig Hilsen,

A. Helge Joakimsen


openSUSE now defaults to 1MB partition alignment. The current CHS presentation is meaningless for that.
The same is true for SSDs and raid arrays.

Thus the current presentation is only useful for drives partitioned with openSUSE 11.2 or older.


icons/user_comment.png A. S. wrote: (7 years ago)

The YaST partitioner does still use cylinders internally. What has changed is
parted: It now creates new partitions with 1MB alignment and respects the
topology information provided by the kernel.

Showing sectors in YaST is not possible for new (not yet created on disk)
partitions unless we reimplement the complete alignment code from parted in
YaST. I also think that showing sectors is useless since the numbers are
simply oversized (e.g. 10 digits) and are meaningless unless we also show the
topology information.

icons/user_comment.png G. F. wrote: (7 years ago)

If I have misstated the situation about the internals, then please feel free to correct the description. If I understand you its more than just a GUI update, there are still internal parts of the yast-partitioner that treat cylinders as special.
I think it should have a legacy mode where that continues to be true, and modern mode where cylinders are simply not important.
As to my assumption about the internals being done:
My reasoning is openfate:
Called for yast-partitioner to be updated to leverage hardware topology information for partition alignment purposes.

My understanding is that feature was accomplished for 11.3, but the GUI was never updated to match.

icons/user_comment.png A. S. wrote: (7 years ago)

Fate #306443 was done by updating to parted 2.2. YaST was almost unaffected by that feature and still uses cylinders internally.

icons/user_comment.png P. U. wrote: (7 years ago)

Would it make sense to use MiB as internal representation ?

- it does not make sense to align on anything else anyways
- it is understandable by humans
- easy conversion from/to sectors (known sector size)
- plays nicely with upcoming parted feature:
- would avoid Bug #617945

Last change: 11 months ago
Loading tags...
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint