1. 20 3月, 2009 1 次提交
  2. 16 3月, 2009 1 次提交
  3. 03 3月, 2009 1 次提交
  4. 27 2月, 2009 1 次提交
  5. 14 2月, 2009 1 次提交
    • M
      Add virFileWriteStr() · 0bb6f816
      Mark McLoughlin 提交于
      Re-factor the code from networkEnableIpForwarding() into a
      utility function in preparation for code which writes to
      sysfs files.
      0bb6f816
  6. 06 2月, 2009 2 次提交
    • J
      remove remainder of offending strerror uses · bafd7389
      Jim Meyering 提交于
      * qemud/qemud.c (GET_CONF_STR): Use virStrerror, not strerror.
      * qemud/remote.c (remoteDispatchDomainBlockPeek): Likewise.
      (remoteDispatchDomainMemoryPeek, remoteDispatchAuthSaslInit): Likewise.
      (remoteDispatchAuthPolkit): Likewise.
      * src/lxc_container.c (lxcContainerAvailable): Likewise.
      * src/network_driver.c (networkStartNetworkDaemon): Likewise.
      (networkShutdownNetworkDaemon): Likewise.
      * src/qemu_conf.c (qemudExtractVersion, qemudNetworkIfaceConnect):
      * src/storage_conf.c (virStoragePoolLoadAllConfigs): Likewise.
      * src/storage_driver.c (storagePoolUndefine): Likewise.
      * src/uml_driver.c (umlStartup, umlStartVMDaemon): Likewise.
      * src/util.c (virFileReadAll): Likewise.
      * src/uuid.c (virUUIDGenerate): Likewise.
      * src/xen_internal.c (get_cpu_flags): Likewise.
      bafd7389
    • J
      remove duplicate *SetCloseExec and *SetNonBlock functions · b0d49913
      Jim Meyering 提交于
      * src/qemu_driver.c: Use virSetCloseExec and virSetNonBlock,
      rather than qemuSet* functions.  Suggested by Daniel P. Berrange.
      * src/util.c (virSetCloseExec): Publicize.
      * src/util.h (virSetCloseExec): Declare
      * src/libvirt_private.syms: Add virSetCloseExec.
      b0d49913
  7. 30 1月, 2009 3 次提交
  8. 29 1月, 2009 1 次提交
    • J
      error-reporting calls using VIR_ERR_NO_MEMORY: use virReportOOMError instead · bc18a91f
      Jim Meyering 提交于
      * src/uml_conf.c (VIR_FROM_THIS): Define to VIR_FROM_UML.
      * src/xs_internal.c (VIR_FROM_THIS): Define to VIR_FROM_XEN.
      * src/xml.c (VIR_FROM_THIS): Define to VIR_FROM_XML.
      * src/stats_linux.c (VIR_FROM_THIS): Define to VIR_FROM_STATS_LINUX.
      * src/datatypes.c (VIR_FROM_THIS): Define to VIR_FROM_NONE.
      * src/lxc_conf.c (VIR_FROM_THIS): Define to VIR_FROM_LXC.
      * src/libvirt.c (VIR_FROM_THIS): Define to VIR_FROM_NONE.
      * src/node_device_conf.c (VIR_FROM_THIS): Define to VIR_FROM_NODEDEV.
      * src/openvz_conf.c (VIR_FROM_THIS): Define to VIR_FROM_OPENVZ.
      * src/openvz_driver.c (VIR_FROM_THIS): Define to VIR_FROM_OPENVZ.
      * src/conf.c (VIR_FROM_THIS): Define to VIR_FROM_CONF.
      Note: this loses config_filename:config_lineno diagnostics,
      but that's ok.
      * src/node_device.c (VIR_FROM_THIS): Define to VIR_FROM_NODEDEV.
      * src/sexpr.c (VIR_FROM_THIS): Define to VIR_FROM_SEXPR.
      * po/POTFILES.in: remove src/sexpr.c and src/lxc_conf.c
      bc18a91f
  9. 23 1月, 2009 2 次提交
  10. 21 1月, 2009 2 次提交
  11. 16 1月, 2009 1 次提交
  12. 07 1月, 2009 2 次提交
  13. 23 12月, 2008 1 次提交
  14. 18 12月, 2008 4 次提交
  15. 16 12月, 2008 1 次提交
  16. 12 12月, 2008 1 次提交
  17. 25 11月, 2008 1 次提交
  18. 17 11月, 2008 1 次提交
  19. 14 11月, 2008 1 次提交
    • J
      avoid format string warnings · 94359e16
      Jim Meyering 提交于
      * src/openvz_driver.c (ADD_ARG_LIT): Add "%s" arg before _(...).
      * src/qemu_driver.c (PCI_ATTACH_OK_MSG): Likewise.
      * src/util.c (virExec, virRun): Likewise.
      94359e16
  20. 08 11月, 2008 1 次提交
    • J
      always compile iptables.c · 0d4cdc05
      Jim Meyering 提交于
      Avoid a build error when configuring --without-xen --without-qemu.
      * src/iptables.c [WITH_QEMU]: Don't #ifdef-out.
      * src/iptables.h [WITH_QEMU]: Don't #ifdef-out.
      * src/util.c (virRun) [__MINGW32__]: Define a stub that always fails.
      0d4cdc05
  21. 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
  22. 06 11月, 2008 3 次提交
  23. 05 11月, 2008 1 次提交
  24. 24 10月, 2008 1 次提交
  25. 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
  26. 10 10月, 2008 1 次提交
  27. 09 10月, 2008 1 次提交
  28. 05 9月, 2008 1 次提交
  29. 02 9月, 2008 1 次提交