[libvirt] [PATCH 3/5]: Set format type to LVM2 on NULL format

Chris Lalancette clalance at redhat.com
Tue Oct 21 13:57:07 UTC 2008


Again because of my generic VIR_ENUM_IMPL patch last week, I unwittingly caused
a regression in the storage_backend_logical driver.  Previously, if you
submitted logical pool XML that had no <source><format type='lvm2'/> string, it
would just default to VIR_STORAGE_POOL_LOGICAL_LVM2.  This would succeed just
fine and go on with life.  This is no longer the case, and now XML without the
format tag fails to define.  To maintain backwards compatibility with already
existing XML that expects this, add a compatibility wrapper to return
VIR_STORAGE_POOL_LOGICAL_LVM2 on an empty format tag.

Signed-off-by: Chris Lalancette <clalance at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-logical-rewrite-pool-sources-v3-patch3.patch
Type: text/x-patch
Size: 1291 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081021/eeaf726c/attachment-0001.bin>


More information about the libvir-list mailing list