Red Hat Bugzilla – Bug 591142
virt-inspector should give an error for unrecognized disk images
Last modified: 2011-07-14 15:07:45 EDT
Description of problem:
If you run virt-inspector on something which isn't a disk image (or is blank
or random) then it runs and produces no output and no error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. virt-inspector /dev/zero
2. echo $?
Status is 0 and no error.
An error message.
Patch posted upstream:
$ virt-inspector /dev/zero
No operating system could be detected inside this disk image.
This may be because the file is not a disk image, or is not a virtual machine
image, or because the OS type is not understood by virt-inspector.
If you feel this is an error, please file a bug report including as much
information about the disk image as possible.
$ echo $?
libguestfs-1.2.6-1.fc13 has been submitted as an update for Fedora 13.
libguestfs-1.2.7-1.fc12 has been submitted as an update for Fedora 12.
libguestfs-1.2.7-1.el5 has been submitted as an update for Fedora EPEL 5.
libguestfs-1.2.7-2.fc13 has been submitted as an update for Fedora 13.
libguestfs-1.2.7-2.fc13.1 has been submitted as an update for Fedora 13.