Bug 1461983 - part-to-dev and part-to-partnum APIs are buggy when the device name ends with a number
part-to-dev and part-to-partnum APIs are buggy when the device name ends with...
Status: NEW
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard W.M. Jones
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-15 15:42 EDT by Richard W.M. Jones
Modified: 2017-06-15 15:42 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Richard W.M. Jones 2017-06-15 15:42:30 EDT
Description of problem:

$ guestfish -N lvfs:/dev/VG/LV1 part-to-dev /dev/VG/LV1
/dev/VG/LV
$ guestfish -N lvfs:/dev/VG/LV1 part-to-partnum /dev/VG/LV1
1

It's a bit harder to demonstrate from the command line,
but the same thing happens with md paths (/dev/md0 -> /dev/md, 0)

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

libguestfs-1.36.4-1.fc26.x86_64 but also happens upstream

How reproducible:

100%

Steps to Reproduce:
1. See above.

Note You need to log in before you can comment on or make changes to this bug.