Description of problem: The virt-filesystems tool displays incorrect LVM vg name for the Fedora 21 Alpha Atomic image. Version-Release number of selected component (if applicable): libguestfs 1.26.9 How reproducible: Always Steps to Reproduce: 1. Download Fedora 21 Alpha Atomic image: http://download.fedoraproject.org/pub/fedora/linux/releases/test/21-Alpha/Cloud/Images/x86_64/Fedora-Cloud-Atomic-20140915-21_Alpha.x86_64.qcow2 2. Run: virt-filesystems -a Fedora-Cloud-Atomic-20140915-21_Alpha.x86_64.qcow2 3. Run: guestfish -a Fedora-Cloud-Atomic-20140915-21_Alpha.x86_64.qcow2, then run, list-filesystems Actual results: virt-filesystems output: /dev/sda1 /dev/sdora-cloud/root guestfish output: /dev/sda1: ext4 /dev/fedora-cloud/root: ext4 /dev/fedora-cloud/swap: swap Expected results: virt-filesystems output: /dev/sda1 /dev/fedora-cloud/root Additional info: Tested on Arch Linux.
Created attachment 942972 [details] libguestfs-test-tool output
Hmm, I can reproduce this .. not good at all. $ virt-filesystems -a Fedora-Cloud-Atomic-20140915-21_Alpha.x86_64.qcow2 /dev/sda1 /dev/sdora-cloud/root
Luckily just a stupid mistake in guestfs_canonical_device_name API and not some horrible data corruptor. The fix is: https://github.com/libguestfs/libguestfs/commit/886c566756d02f8568c20585a0936c387105b061 In libguestfs >= 1.27.57, and likely to be backported to the stable branch.