1. 17 11月, 2008 1 次提交
  2. 07 11月, 2008 1 次提交
    • D
      add new logging module, and move existing definitions there · df93e1ee
      Daniel Veillard 提交于
      * src/logging.c src/logging.h proxy/Makefile.am proxy/libvirt_proxy.c
        src/Makefile.am src/cgroup.c src/datatypes.c src/domain_event.c
        src/internal.h src/libvirt.c src/lxc_container.c src/lxc_controller.c
        src/lxc_driver.c src/proxy_internal.c src/qemu_driver.c
        src/remote_internal.c src/storage_backend_disk.c src/util.c
        src/veth.c src/xen_internal.c src/xen_unified.c src/xend_internal.c:
        add new logging module, and move existing definitions there
      Daniel
      df93e1ee
  3. 05 11月, 2008 2 次提交
  4. 14 10月, 2008 1 次提交
    • J
      avoid many format string warnings · fd52c6ff
      Jim Meyering 提交于
      Building with --disable-nls exposed many new warnings like these:
      virsh.c:4952: warning: format not a string literal and no format ...
      util.c:163: warning: format not a string literal and no format arguments
      All but one of the following changes add a "%s" argument before
      the offending _(...) argument.
      
      This was the only manual change:
      * src/lxc_driver.c (lxcVersion): Use %s and strerror(errno)
      rather than %m, to avoid a warning from gcc -Wformat-security.
      
      Add "%s" before each warned about format-string-with-no-%-directive:
      * src/domain_conf.c (virDomainHostdevSubsysUsbDefParseXML)
      (virDomainDefParseString, virDomainDefParseFile):
      * src/hash.c (virGetConnect, __virGetDomain, virReleaseDomain)
      (__virGetNetwork, virReleaseNetwork, __virGetStoragePool)
      (virReleaseStoragePool, __virGetStorageVol, virReleaseStorageVol):
      * src/lxc_container.c (lxcContainerChild):
      * src/lxc_driver.c (lxcDomainDefine, lxcDomainUndefine)
      (lxcDomainGetInfo, lxcGetOSType, lxcDomainDumpXML)
      (lxcSetupInterfaces, lxcDomainStart, lxcDomainCreateAndStart)
      (lxcVersion, lxcGetSchedulerParameters):
      * src/network_conf.c (virNetworkDefParseString)
      (virNetworkDefParseFile):
      * src/openvz_conf.c (openvzReadNetworkConf, openvzLoadDomains):
      * src/openvz_driver.c (openvzDomainDefineCmd)
      (openvzDomainGetInfo, openvzDomainDumpXML, openvzDomainShutdown)
      (openvzDomainReboot, ADD_ARG_LIT, openvzDomainDefineXML)
      (openvzDomainCreateXML, openvzDomainCreate, openvzDomainUndefine)
      (openvzDomainSetAutostart, openvzDomainGetAutostart)
      (openvzDomainSetVcpus):
      * src/qemu_driver.c (qemudDomainBlockPeek, qemudDomainMemoryPeek):
      * src/remote_internal.c (remoteDomainBlockPeek)
      (remoteDomainMemoryPeek, remoteAuthPolkit):
      * src/sexpr.c (sexpr_new, _string2sexpr):
      * src/storage_backend_disk.c (virStorageBackendDiskMakeDataVol)
      (virStorageBackendDiskCreateVol):
      * src/storage_backend_fs.c
      (virStorageBackendFileSystemNetFindPoolSources):
      * src/storage_backend_logical.c (virStorageBackendLogicalFindLVs)
      (virStorageBackendLogicalFindPoolSources):
      * src/test.c (testOpenDefault, testOpenFromFile, testOpen)
      (testGetDomainInfo, testDomainRestore)
      (testNodeGetCellsFreeMemory):
      * src/util.c (virExec):
      * src/virsh.c (cmdAttachDevice, cmdDetachDevice)
      (cmdAttachInterface, cmdDetachInterface, cmdAttachDisk)
      (cmdDetachDisk, cmdEdit):
      * src/xend_internal.c (do_connect, wr_sync, xend_op_ext)
      (urlencode, xenDaemonDomainCreateXML)
      (xenDaemonDomainLookupByName_ids, xenDaemonDomainLookupByID)
      (xenDaemonParseSxprOS, xend_parse_sexp_desc_char)
      (xenDaemonParseSxprChar, xenDaemonParseSxprDisks)
      (xenDaemonParseSxpr, sexpr_to_xend_topology, sexpr_to_domain)
      (xenDaemonDomainFetch, xenDaemonDomainGetAutostart)
      (xenDaemonDomainSetAutostart, xenDaemonDomainMigratePerform)
      (xenDaemonDomainDefineXML, xenDaemonGetSchedulerType)
      (xenDaemonGetSchedulerParameters)
      (xenDaemonSetSchedulerParameters, xenDaemonDomainBlockPeek)
      (xenDaemonFormatSxprChr, virDomainXMLDevID):
      * src/xm_internal.c (xenXMConfigCacheRefresh, xenXMDomainPinVcpu)
      (xenXMDomainCreate, xenXMDomainDefineXML)
      (xenXMDomainAttachDevice, xenXMDomainDetachDevice):
      * src/xml.c (virXPathString, virXPathNumber, virXPathLong)
      (virXPathULong, virXPathBoolean, virXPathNode, virXPathNodeSet):
      * src/xs_internal.c (xenStoreOpen):
      fd52c6ff
  5. 09 10月, 2008 1 次提交
  6. 07 10月, 2008 1 次提交
  7. 22 5月, 2008 1 次提交
  8. 15 5月, 2008 1 次提交
  9. 29 4月, 2008 2 次提交
  10. 18 4月, 2008 1 次提交
    • R
      Fixes for MinGW. · 8df91acf
      Richard W.M. Jones 提交于
      	* configure.in: Fix pkg-config detection of libxml2,
      	  add -lgcrypt to gnutls lib.
      	* src/Makefile.am: If compiling --without-libvirtd then
      	  don't compile any part of the storage driver.
      	* configure.in, src/hash.c, src/internal.h: Detect availability
      	  of pthread library and compile out mutex code if not available.
      	* src/storage_driver.c, src/util.c: Ignore some missing
      	  headers on MinGW.
      8df91acf
  11. 11 4月, 2008 1 次提交
  12. 04 4月, 2008 1 次提交
    • D
      typos fixes · a528e973
      Daniel Veillard 提交于
      * docs//* src/conf.c src/hash.c src/libvirt.c src/proxy_internal.c
       src/remote_internal.c src/virsh.c src/xen_internal.c
       src/xend_internal.c src/xml.c: applied patch from Atsushi SAKAI
       fixing a lot of typos
      Daniel
      a528e973
  13. 31 3月, 2008 1 次提交
  14. 20 2月, 2008 1 次提交
  15. 08 2月, 2008 1 次提交
    • D
      virHashRemoveSet bugfixes · e9b3bc77
      Daniel Veillard 提交于
      * src/hash.c: fix a couple of problems in virHashRemoveSet based
        on Hiroyuki Kaguchi patch and explanations.
      Daniel
      e9b3bc77
  16. 06 2月, 2008 1 次提交
  17. 31 1月, 2008 1 次提交
  18. 30 1月, 2008 2 次提交
    • J
      Enable the <config.h>-requiring test; fix violations · a3781881
      Jim Meyering 提交于
      Use <config.h>, not "config.h", per autoconf documentation.
      * Makefile.cfg (local-checks-to-skip) [sc_require_config_h]: Enable.
      * .x-sc_require_config_h: New file, to list exempted files.
      * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h.
      a3781881
    • J
      Given code like if (foo) free (foo); remove the useless "if (foo) " part. · acff2d11
      Jim Meyering 提交于
      Likewise, given if (foo != NULL) free (foo); remove the useless "if" test.
      
      * proxy/libvirt_proxy.c: Remove unnecessary "if" test before free.
      * python/generator.py: Likewise.
      * qemud/qemud.c: Likewise.
      * src/buf.c: Likewise.
      * src/conf.c: Likewise.
      * src/hash.c: Likewise.
      * src/iptables.c: Likewise.
      * src/libvirt.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/qemu_conf.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/remote_internal.c: Likewise.
      * src/test.c: Likewise.
      * src/virsh.c: Likewise.
      * src/virterror.c: Likewise.
      * src/xen_internal.c: Likewise.
      * src/xen_unified.c: Likewise.
      * src/xend_internal.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * src/xmlrpc.c: Likewise.
      * src/xs_internal.c: Likewise.
      * tests/testutils.c: Likewise.
      * tests/xencapstest.c: Likewise.
      * tests/xmconfigtest.c: Likewise.
      acff2d11
  19. 22 1月, 2008 1 次提交
  20. 12 12月, 2007 1 次提交
    • J
      Use a variable name as sizeof argument, not a type name. · 49230350
      Jim Meyering 提交于
      Given code like: T *var = calloc (n, sizeof (T));
      Convert to this: T *var = calloc (n, sizeof (*var));
      This first-cut change adjusts all malloc, calloc, and
      realloc statements.
      
      The only binary differences are in remote_internal.c
      (due to the bug fix) and in xmlrpc.c (due to factorization).
      
      * python/libvir.c: As above.
      * qemud/event.c: Likewise.
      * qemud/mdns.c: Likewise.
      * qemud/qemud.c: Likewise.
      * qemud/remote.c: Likewise.
      * src/bridge.c: Likewise.
      * src/buf.c: Likewise.
      * src/conf.c: Likewise.
      * src/hash.c: Likewise.
      * src/iptables.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/qemu_conf.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/test.c: Likewise.
      * src/xen_internal.c: Likewise.
      * src/xen_unified.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * tests/qemuxml2argvtest.c: Likewise.
      * src/xmlrpc.c (xmlRpcValuePtr): Likewise, and minor factorization.
      * src/remote_internal.c (remoteAuthMakeCredentials): Use the right
      type when allocating space for an array of cred _pointers_.
      49230350
  21. 06 12月, 2007 1 次提交
    • J
      Include "config.h". · 87396257
      Jim Meyering 提交于
      * qemud/event.c: Likewise.
      * src/buf.c: Likewise.
      * src/hash.c: Likewise.
      * src/nodeinfo.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/proxy_internal.c: Likewise.
      * src/virterror.c: Likewise.
      * src/xmlrpc.c: Likewise.
      * src/xs_internal.c: Likewise.
      * tests/conftest.c: Likewise.
      * tests/xmlrpctest.c: Likewise.
      This fixes a mingw build failure reported by Rich Jones.
      
      Author: Jim Meyering <meyering@redhat.com>
      87396257
  22. 01 12月, 2007 1 次提交
  23. 06 7月, 2007 1 次提交
    • R
      Fri Jul 6 16:00:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 16eae80e
      Richard W.M. Jones 提交于
      	* src/hash.c, src/internal.h: Remove virGetDomainByID function
      	  as it is not used or exported.
      	* src/proxy_internal.c, src/qemu_driver.c, src/remote_internal.c,
      	  src/test.c, src/xend_internal.c, src/xs_internal.c: Fix
      	  all callers to virGetDomain and virGetNetwork functions -
      	  the callers do not need to set virterror since it is already
      	  set inside the functions.
      16eae80e
  24. 08 5月, 2007 2 次提交
  25. 04 4月, 2007 1 次提交
  26. 23 3月, 2007 1 次提交
  27. 07 3月, 2007 1 次提交
  28. 14 2月, 2007 4 次提交
    • M
      Tue Feb 14 14:58:35 EST 2007 Mark McLoughlin <markmc@redhat.com · e018cbc7
      Mark McLoughlin 提交于
              * src/hash.c, src/internal.h: Re-name virConnect->domains_mux
              to virConnect->hashes_mux since it will also be used to
              protect the networks hash.
      e018cbc7
    • M
      Tue Feb 14 14:42:38 EST 2007 Mark McLoughlin <markmc@redhat.com · d16a83dd
      Mark McLoughlin 提交于
              * src/internal.h: add virConnect->qemud_fd so that
              xen and qemu don't share the handle member.
      
              * src/hash.c, src/qemu_internal.c: update
      d16a83dd
    • M
      Tue Feb 14 15:37:17 EST 2007 Mark McLoughlin <markmc@redhat.com> · 8ce3203a
      Mark McLoughlin 提交于
              Note: potential ABI break here, but people should
              only really be using virError structs returned from
              libvirt itself.
      
              * include/libvirt/virterror.h: add virNetwork
              to virError
      
              * src/internal.h, src/virterror.c: add network param
              to __virRaiseError()
      
              * src/conf.c, src/hash.c, src/libvirt.c, src/proxy_internal.c,
              src/qemu_internal.c, src/sexpr.c, src/test.c, src/xen_internal.c,
              src/xend_internal.c, src/xm_internal.c, src/xml.c, src/xmlrpc.c,
              src/xs_internal.c: update.
      8ce3203a
    • M
      Tue Feb 14 15:33:05 EST 2007 Mark McLoughlin <markmc@redhat.com> · 5be54b40
      Mark McLoughlin 提交于
              * include/libvirt/libvirt.h.in: add the networks APIs
      
              * include/libvirt/virterror.h: add some error codes
      
              * src/driver.h: add network driver vtable
      
              * src/hash.c: add networks hash
      
              * src/internal.h: add virNetwork
      
              * src/libvirt.c: hook up the APIs to the network
              driver
      
              * src/libvirt_sym.version: add the new APIs
      
              * src/virterror.c: handle the new error codes
      5be54b40
  29. 23 1月, 2007 2 次提交
    • M
      Mon Jan 23 14:36:18 IST 2007 Mark McLoughlin <markmc@redhat.com> · 6d153563
      Mark McLoughlin 提交于
              * include/libvirt/libvirt.h.in: add VIR_UUID_BUFLEN and
              VIR_UUID_STRING_BUFLEN
      
              * libvirt/proxy/libvirt_proxy.c, libvirt/src/hash.c,
              libvirt/src/internal.h, libvirt/src/libvirt.c,
              libvirt/src/proxy_internal.c, libvirt/src/test.c,
              libvirt/src/virsh.c, libvirt/src/xend_internal.c,
              libvirt/src/xm_internal.c, libvirt/src/xml.c,
              libvirt/python/libvir.c: use them
      6d153563
    • M
      Mon Jan 22 16:23:52 IST 2007 Mark McLoughlin <markmc@redhat.com> · e9371d1a
      Mark McLoughlin 提交于
      	* src/internal.h: virDomain.handle refers to the "id"
      	in the API, so re-name to virDomain.id to avoid
      	confusion.
      
      	* src/hash.c, src/libvirt.c, src/proxy_internal.c, src/test.c,
      	src/xen_internal.c, src/xend_internal.c, src/xm_internal.c,
      	src/xml.c, src/xs_internal.c: update for rename.
      e9371d1a
  30. 16 11月, 2006 1 次提交
  31. 21 9月, 2006 1 次提交
  32. 30 5月, 2006 1 次提交