Re: [libvirt-users] Does libvirt have API to detect image format

2014-08-13 Thread Richard W.M. Jones
On Mon, Aug 11, 2014 at 08:35:46PM +, Jianfeng Tang wrote: > > > > I am using backing store when I create my volume. However, the backing > store file is from another team, which can be either in raw or in qcow2 > format. > > Is there a libvirt API to detect image format by given an image fil

Re: [libvirt-users] Does libvirt have API to detect image format

2014-08-11 Thread Eric Blake
On 08/11/2014 02:59 PM, Jianfeng Tang wrote: [please don't top-post on technical lists] > Unfortunately my backing store file is not in a volume. So I guess I > cannot use that method. It's very easy to create a storage pool for an arbitrary directory, at which point you can then use the virStor

Re: [libvirt-users] Does libvirt have API to detect image format

2014-08-11 Thread Jianfeng Tang
Unfortunately my backing store file is not in a volume. So I guess I cannot use that method. On 8/11/14 3:45 PM, "Eric Blake" wrote: >On 08/11/2014 02:35 PM, Jianfeng Tang wrote: >>> >> >> I am using backing store when I create my volume. However, the backing >> store file is from another team,

Re: [libvirt-users] Does libvirt have API to detect image format

2014-08-11 Thread Eric Blake
On 08/11/2014 02:35 PM, Jianfeng Tang wrote: >> > > I am using backing store when I create my volume. However, the backing > store file is from another team, which can be either in raw or in qcow2 > format. > > Is there a libvirt API to detect image format by given an image file? Or I > have to r

[libvirt-users] Does libvirt have API to detect image format

2014-08-11 Thread Jianfeng Tang
> I am using backing store when I create my volume. However, the backing store file is from another team, which can be either in raw or in qcow2 format. Is there a libvirt API to detect image format by given an image file? Or I have to run qemu-img? > _