[libvirt] [PATCH 0/2] Break out virDomainObjIsDuplicate function

Cole Robinson crobinso at redhat.com
Wed Nov 4 20:06:57 UTC 2009


Code to check for a VM duplicate in create/define/restore is present in
various forms throughout several drivers. Break this code out into its
own function (virDomainObjIsDuplicate) and use where applicable.

Cole Robinson (2):
  qemu: Break out function to check if we can create/define/restore
  qemu: Use same create/define overwrite logic for migration prepare.

 src/conf/domain_conf.c   |   64 ++++++++++++++++++++++
 src/conf/domain_conf.h   |    4 ++
 src/libvirt_private.syms |    1 +
 src/lxc/lxc_driver.c     |   68 ++---------------------
 src/qemu/qemu_driver.c   |  132 ++++-----------------------------------------
 src/test/test_driver.c   |   14 +++++-
 src/uml/uml_driver.c     |   20 ++------
 7 files changed, 104 insertions(+), 199 deletions(-)




More information about the libvir-list mailing list