Displaying 1 result from an estimated 1 matches for "qemuimg".
Did you mean:
qemu_img
2011 Jan 26
1
[PATCH] Don't use libvirt for volume information when converting with libvirtxml
...mm = Sys::Virt->new(uri => 'qemu:///session');
- my $vol = $vmm->get_storage_volume_by_path($path);
-
- my ($name, $format, $size, $usage, $is_sparse, $is_block) =
- parse_libvirt_volinfo($vol, $path);
+ # Use the output of qemu-img to inspect the path
+ open(my $qemuimg, '-|', 'env', 'LANG=C', 'qemu-img', 'info', $path)
+ or die("Unable to execute qemu-img: $!");
+
+ # qemu-img outputs data similar to:
+ # image: /var/lib/libvirt/images/p2v.img
+ # file format: raw
+ # virtual size: 8.0G (8589934...