On Mon, Jun 25, 2012 at 12:32:48PM +0200, Michal Privoznik wrote: > Storage is one of the last domains in libvirt where we don't fully > utilize inactive and live XML. Okay, it might be because we don't > have support for that. So implement such support. However, we need > to fallback when talking to old daemon which doesn't support this > new flag. > --- > src/storage/storage_driver.c | 10 ++++++++-- > tools/virsh.c | 24 ++++++++++++++++++++++-- > tools/virsh.pod | 4 +++- > 3 files changed, 33 insertions(+), 5 deletions(-) > > diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c > index 3b95c70..0b65369 100644 > --- a/src/storage/storage_driver.c > +++ b/src/storage/storage_driver.c > @@ -960,9 +960,10 @@ storagePoolGetXMLDesc(virStoragePoolPtr obj, > { > virStorageDriverStatePtr driver = obj->conn->storagePrivateData; > virStoragePoolObjPtr pool; > + virStoragePoolDefPtr def; > char *ret = NULL; > > - virCheckFlags(0, NULL); > + virCheckFlags(VIR_DOMAIN_XML_INACTIVE, NULL); We can't just use the VIR_DOMAIN_XML_INACTIVE flag - we must have a VIR_STORAGE_XML_INACTIVE flag here. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list