[et-mgmt-tools] [PATCH] virt-convert: check for qemu-img failure

John Levon levon at movementarian.org
Thu Jul 3 16:02:53 UTC 2008


On Thu, Jul 03, 2008 at 11:59:44AM -0400, Cole Robinson wrote:

> > I didn't go the "qemu-info" route (yet), as it only produces
> > human-readable output: I didn't see a way to get it to print just the
> > file format.
> 
> One potential option would be to try 'qemu-info -f vmx imagename', throw
> away the output and just check the return value. I don't know if this
> works for all formats but in my quick check the above command on a raw
> file failed. It would prevent us from autodetecting the format, but it's
> at least an option.

But why is this any better than just trying the qemu-img convert?

regards
john




More information about the et-mgmt-tools mailing list