Bug 638899 - /dev/mapper paths should not be returned from C inspection APIs
Summary: /dev/mapper paths should not be returned from C inspection APIs
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-30 10:28 UTC by Richard W.M. Jones
Modified: 2011-07-14 19:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 646432 (view as bug list)
Environment:
Last Closed: 2011-07-14 19:16:21 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2010-09-30 10:28:41 UTC
Description of problem:

eg:
$ sudo guestfish --ro -i -d F13x64 

Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.

Type: 'help' for a list of commands
      'man' to read the manual
      'quit' to quit the shell

Operating system: Fedora release 13 (Goddard)
/dev/mapper/vg_f13x64-lv_root mounted on /
/dev/vda1 mounted on /boot

Note /dev/mapper/vg_f13x64-lv_root should be
/dev/vg_f13x64/lv_root.

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

libguestfs 1.5.20

How reproducible:

Always when the inspected guest has LVs and /etc/fstab of the
guest contains a reference to /dev/mapper/...

Comment 1 Richard W.M. Jones 2010-10-25 10:46:11 UTC
><fs> cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Thu Sep 16 18:13:22 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_f13x64-lv_root /                       ext4    defaults        1 1
UUID=59336587-da50-4b87-ad47-577a0fd95498 /boot                   ext4    defaults        1 2
/dev/mapper/vg_f13x64-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

Comment 2 Richard W.M. Jones 2010-10-25 12:12:46 UTC
Patch posted upstream:
https://www.redhat.com/archives/libguestfs/2010-October/msg00063.html


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