Bug 1461983 - part-to-dev and part-to-partnum APIs are buggy when the device name ends with a number
Summary: part-to-dev and part-to-partnum APIs are buggy when the device name ends with...
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-15 19:42 UTC by Richard W.M. Jones
Modified: 2018-07-18 15:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2017-06-15 19:42:30 UTC
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.