• C
    Better error reporting for failed migration · b97c24b2
    Chris Lalancette 提交于
    If the hostname as returned by "gethostname" resolves
    to "localhost" (as it does with the broken Fedora-12
    installer), then live migration will fail because the
    source will try to migrate to itself.  Detect this
    situation up-front and abort the live migration before
    we do any real work.
    
    * src/util/util.h src/util/util.c: add a new virGetHostnameLocalhost
      with an optional localhost check, and rewire virGetHostname() to use
      it
    * src/libvirt_private.syms: expose the new function
    * src/qemu/qemu_driver.c: use it in qemudDomainMigratePrepare2()
    b97c24b2
util.c 65.9 KB