bug#21494: Assertion failure with confusion between Linux and driver descriptor

Phil Susi <[email protected]>
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
On 9/16/2015 2:47 AM, Shane Kerr wrote:
> Anyway, I proceeded to try a new partition:
> 
> -----------------------------------------------------------------------
> (parted) n

n is for name, to name a partition.  To create a new one you use mkpart.

> Warning: The driver descriptor says the physical block size is 2048 bytes, but
> Linux says it is 512 bytes.
> Ignore/Cancel? c
> Partition number?
> Partition number? 1
> Backtrace has 8 calls on stack:

Brian fixed this already not too long ago, it just hasn't been released yet:

commit f5c628dd51c7d77ff939554425159ab6e8aef1c0
Author: Brian C. Lane <[email protected]>
Date:   Mon Jul 13 16:43:11 2015 -0700

    parted: Fix crash with name command and no disklabel (#1226067)

    A typo (the last I think) from commit 7eac058 wasn't properly checking
    the result of ped_disk_new so it could crash if there was no disklabel
    on the device.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.