Bug 1118975

Summary: Bogus error on aarch64: Error: The location 128 is outside of the device /dev/...
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: partedAssignee: Brian Lane <bcl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bcl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-12 15:26:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2014-07-12 15:26:05 UTC
Description of problem:

With a 100MB block device:

$ sudo blockdev --getsize64 /dev/vg_data/tmp
104857600
$ sudo parted -s -- /dev/vg_data/tmp mklabel msdos mkpart primary 128 -128s 
Error: The location 128 is outside of the device /dev/dm-2.

If the size of the block device is increased a bit to 500 MB, then
the same command works fine:

$ sudo blockdev --getsize64 /dev/vg_data/tmp524288000
$ sudo parted -s -- /dev/vg_data/tmp mklabel msdos mkpart primary 128 -128s 
Warning: The resulting partition is not properly aligned for best performance.
$ echo $?
0

Version-Release number of selected component (if applicable):

parted-3.1-28.fc21.aarch64

Also tested parted-3.1-17.sa1.4.aarch64 which fails in the same way.

How reproducible:

100%

Steps to Reproduce:
1. See above.
2.
3.

Comment 1 Richard W.M. Jones 2014-07-12 15:26:55 UTC
OK, I see why this is not a bug.  I omitted '128s' ...