1. 28 4月, 2008 2 次提交
  2. 25 4月, 2008 1 次提交
    • J
      avoid problems with sign-extended "char" operand to is* functions · 225ba3f0
      Jim Meyering 提交于
      * src/util.h (to_uchar): Define function.
      * src/nodeinfo.c (linuxNodeInfoCPUPopulate): Apply to_uchar to is* operand.
      * src/qemu_driver.c (qemudExtractMonitorPath): Likewise.
      * src/sexpr.c (_string2sexpr): Likewise.
      * src/stats_linux.c (xenLinuxDomainDeviceID): Likewise.
      * src/util.c (TOLOWER, __virMacAddrCompare, virParseMacAddr): Likewise.
      * src/virsh.c (cmdVcpupin, vshCommandGetToken): Likewise.
      225ba3f0
  3. 11 4月, 2008 3 次提交
  4. 04 4月, 2008 2 次提交
    • D
      error message on vcpupin · 62ee5d57
      Daniel Veillard 提交于
      * src/virsh.c: patch from Shigeki Sakamoto adding message on vcpupin
      Daniel
      62ee5d57
    • 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
  5. 27 3月, 2008 1 次提交
    • J
      Mark many more strings for translation. · 513bd04c
      Jim Meyering 提交于
      * Makefile.maint (err_func_re): Add to the list and make it readable.
      * po/POTFILES.in: Add src/util.c and src/xm_internal.c, and sort.
      * src/storage_backend.c: Fix comment.
      * src/util.c (virFileLinkPointsTo): Mark a string.
      * qemud/remote.c (remoteDispatchClientRequest): Mark strings.
      (remoteDispatchOpen, CHECK_CONN, remoteDispatchGetType): Likewise.
      (remoteDispatchDomainGetSchedulerType): Likewise.
      (remoteDispatchDomainGetSchedulerParameters): Likewise.
      (remoteDispatchDomainSetSchedulerParameters): Likewise.
      (remoteDispatchDomainBlockStats): Likewise.
      (remoteDispatchDomainInterfaceStats): Likewise.
      (remoteDispatchDomainAttachDevice, remoteDispatchDomainCreate):
      (remoteDispatchDomainDestroy, remoteDispatchDomainDetachDevice):
      (remoteDispatchDomainDumpXml, remoteDispatchDomainGetAutostart):
      (remoteDispatchDomainGetInfo, remoteDispatchDomainGetMaxMemory):
      (remoteDispatchDomainGetMaxVcpus, remoteDispatchDomainGetOsType):
      (remoteDispatchDomainGetVcpus): Likewise.
      (remoteDispatchDomainMigratePerform): Likewise.
      (remoteDispatchListDefinedDomains, remoteDispatchDomainPinVcpu):
      (remoteDispatchDomainReboot, remoteDispatchDomainResume):
      (remoteDispatchDomainSave, remoteDispatchDomainCoreDump):
      (remoteDispatchDomainSetAutostart): Likewise.
      (remoteDispatchDomainSetMaxMemory, remoteDispatchDomainSetMemory):
      (remoteDispatchDomainSetVcpus, remoteDispatchDomainShutdown):
      (remoteDispatchDomainSuspend, remoteDispatchDomainUndefine):
      (remoteDispatchListDefinedNetworks, remoteDispatchListDomains):
      (remoteDispatchListNetworks, remoteDispatchNetworkCreate):
      (remoteDispatchNetworkDestroy, remoteDispatchNetworkDumpXml):
      (remoteDispatchNetworkGetAutostart, remoteDispatchNetworkGetBridgeName):
      (remoteDispatchNetworkSetAutostart, remoteDispatchNetworkUndefine):
      (addrToString, remoteDispatchAuthSaslInit, remoteDispatchAuthSaslStart):
      (remoteDispatchAuthSaslStep, remoteDispatchListDefinedStoragePools):
      (remoteDispatchListStoragePools, remoteDispatchStoragePoolCreate):
      (remoteDispatchStoragePoolBuild, remoteDispatchStoragePoolDestroy):
      (remoteDispatchStoragePoolDelete, remoteDispatchStoragePoolRefresh):
      (remoteDispatchStoragePoolGetInfo, remoteDispatchStoragePoolDumpXml):
      (remoteDispatchStoragePoolGetAutostart): Likewise.
      (remoteDispatchStoragePoolSetAutostart):
      (remoteDispatchStoragePoolListVolumes):
      (remoteDispatchStoragePoolNumOfVolumes):
      (remoteDispatchStoragePoolUndefine, remoteDispatchStorageVolCreateXml):
      (remoteDispatchStorageVolDelete, remoteDispatchStorageVolGetInfo):
      (remoteDispatchStorageVolDumpXml, remoteDispatchStorageVolGetPath):
      (remoteDispatchStorageVolLookupByName): Likewise.
      * src/qemu_driver.c (qemudOpenMonitor, qemudStartVMDaemon):
      (dhcpStartDhcpDaemon, qemudStartNetworkDaemon):
      (qemudDomainSuspend, qemudDomainResume, qemudDomainShutdown):
      (qemudDomainGetOSType, qemudDomainSetMaxMemory):
      (qemudDomainSetMemory, qemudDomainGetInfo, qemudDomainSave):
      (qemudDomainRestore, qemudDomainDumpXML, qemudDomainStart):
      (qemudDomainUndefine, qemudDomainChangeCDROM):
      (qemudDomainAttachDevice, qemudDomainGetAutostart):
      (qemudDomainSetAutostart, qemudDomainInterfaceStats):
      (qemudNetworkLookupByUUID, qemudNetworkLookupByName):
      (qemudNetworkUndefine, qemudNetworkStart, qemudNetworkDestroy):
      (qemudNetworkDumpXML, qemudNetworkGetAutostart):
      (qemudNetworkSetAutostart): Likewise.
      * src/virsh.c (cmdVcpupin, cmdAttachDevice, cmdDetachDevice): Likewise.
      * src/xm_internal.c (xenXMConfigCacheRefresh, xenXMDomainPinVcpu): Likewise.
      513bd04c
  6. 25 3月, 2008 1 次提交
  7. 14 3月, 2008 1 次提交
    • D
      String fixes #436620 · a7892ee0
      Daniel Veillard 提交于
      * qemud/qemud.c src/virsh.c: fixing some user facing strings
        problems pointed out by Francesco Tombolini should fix #436620
      Daniel
      a7892ee0
  8. 13 3月, 2008 1 次提交
  9. 11 3月, 2008 1 次提交
  10. 05 3月, 2008 1 次提交
  11. 28 2月, 2008 1 次提交
    • R
      virMacAddrCompare for comparing MAC addresses · 92a1e14b
      Richard W.M. Jones 提交于
      	* src/util.c, src/util.h, src/libvirt_sym.version: Added
      	  virMacAddrCompare utility function for comparing MAC
      	  addresses.
      	* src/virsh.c, src/xm_internal.c: Use virMacAddrCompare
      	  to compare addresses.  (Shigeki Sakamoto and Richard Jones).
      92a1e14b
  12. 22 2月, 2008 1 次提交
    • J
      Use safewrite in place of write, in many cases. · b59d9c85
      Jim Meyering 提交于
      Also add "make syntax-check" rules to ensure no new uses sneak in.
      
      There are many uses of write like this:
      
          if (write (fd, xml, towrite) != towrite)
              return -1;
      
      The problem is that the syscall can succeed, yet write less than
      the requested number of bytes, so the caller should retry
      rather than simply failing.
      
      This patch changes most of them to use util.c's safewrite wrapper,
      which encapsulates the process.  Also, there were a few cases in
      which the retry loop was open-coded, and I replaced those, too.
      
      * Makefile.maint (sc_avoid_write): New rule, to avoid recurrence.
      * .x-sc_avoid_write: New file.  Record two legitimate exemptions.
      * qemud/qemud.c (sig_handler, qemudClientWriteBuf): Use safewrite, not write.
      * src/conf.c (__virConfWriteFile): Likewise.
      * src/qemu_conf.c (qemudSaveConfig, qemudSaveNetworkConfig): Likewise.
      * src/qemu_driver.c (qemudWaitForMonitor, qemudStartVMDaemon)
      (qemudVMData, PROC_IP_FORWARD): Likewise.
      * proxy/libvirt_proxy.c: Include "util.h".
      (proxyWriteClientSocket): Use safewrite.
      * src/test.c (testDomainSave, testDomainCoreDump): Likewise.
      * src/proxy_internal.c (virProxyWriteClientSocket): Likewise.
      * src/virsh.c: Include "util-lib.h".
      (vshOutputLogFile): Use safewrite.
      * src/console.c: Include "util-lib.h".
      (vshRunConsole): Use safewrite.
      b59d9c85
  13. 20 2月, 2008 2 次提交
  14. 08 2月, 2008 2 次提交
    • M
      Fix gcc-4.3.0 "inlining failed" warning. · 3da5504e
      Mark McLoughlin 提交于
      * src/internal.h: move xstrol() variants from here ...
      
      * src/util.[ch]: ... to here and rename to virStrToLong()
      
      * src/libvirt_sym.version: export __virStrToLong_i() for
      virsh and qemud.
      
      * src/nodeinfo.c, src/stats_linux.c, src/virsh.c,
        src/xend_internal.c, qemud/qemud.c: replace xstrtol()
      calls with virStrToLong()
      
      * src/nodeinfo.h: don't include internal.h, which was only
      needed for xstrtol(), but instead include libvirt.h which
      is suffificient for the declarations in the header.
      3da5504e
    • J
      Remove more useless if tests before "free"-like functions. · e8ff93b4
      Jim Meyering 提交于
      * build-aux/useless-if-before-free: Rename from ...
      * build-aux/find-unnecessary-if-before-free: ... this.  Remove file.
      Also changed it so that new names are no longer hard-coded in the
      script.  Instead, they're supplied via options:
      * Makefile.cfg (useless_free_options): Define.
      Add xmlXPathFreeObject to the list of free-like functions it detects.
      * Makefile.maint (sc_avoid_if_before_free): Reflect script renaming.
      * .x-sc_avoid_if_before_free: Likewise.
      * src/openvz_conf.c (openvzParseXML): Remove useless "if"-before-free.
      * src/qemu_conf.c (qemudParseXML, qemudParseNetworkXML): Likewise.
      * src/virsh.c (cmdVNCDisplay, cmdTTYConsole, cmdDetachInterface):
      (cmdDetachDisk): Likewise.
      * src/xm_internal.c (xenXMConfigSetIntFromXPath): Likewise.
      (xenXMConfigSetStringFromXPath, xenXMParseXMLToConfig): Likewise.
      (xenXMDomainAttachDevice, xenXMAttachDisk, xenXMAttachInterface):
      (xenXMDomainDetachDevice): Likewise.
      * src/xml.c (virXPathString): Likewise.
      * tests/xmlrpctest.c (checkRequestValue): Likewise.
      e8ff93b4
  15. 06 2月, 2008 1 次提交
  16. 04 2月, 2008 1 次提交
  17. 31 1月, 2008 2 次提交
  18. 30 1月, 2008 3 次提交
    • J
      Also detect and remove unnecessary if-before-xmlXPathFreeContext. · 2367caa3
      Jim Meyering 提交于
      * build-aux/find-unnecessary-if-before-free: Update regexp.
      * src/openvz_conf.c: Remove unnecessary "if (P)"-before xmlXPathFreeContext.
      * src/qemu_conf.c: Likewise.
      * src/virsh.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * tests/xmlrpctest.c: Likewise.
      2367caa3
    • 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. 21 1月, 2008 1 次提交
  20. 17 1月, 2008 1 次提交
  21. 07 12月, 2007 2 次提交
  22. 06 12月, 2007 3 次提交
  23. 05 12月, 2007 1 次提交
  24. 01 12月, 2007 1 次提交
  25. 29 11月, 2007 1 次提交
  26. 28 11月, 2007 2 次提交
  27. 12 11月, 2007 1 次提交
    • D
      Begin fixing uses of strtol: parse integers more carefully. · a500a479
      Daniel Veillard 提交于
      Patch from Jim Meyering
      * src/internal.h: Include <errno.h>.
        Define new static inline function, xstrtol_i.
      * src/virsh.c: Detect integer overflow in domain ID number
        in vshCommandOptDomainBy. Detect overflow and invalid port
        number suffix in cmdVNCDisplay.
      * src/xend_internal.c: Parse CPU number more carefully in
        xenDaemonDomainGetVcpus.
      * tests/int-overflow: New script. Test for the above-fixed bug.
      * tests/Makefile.am: Add int-overflow to TESTS. Define
        TESTS_ENVIRONMENT, to propagate $abs_top_* variables into the
        int-overflow script. Adapt the "valgrind" rule not to clobber
        new TESTS_ENVIRONMENT.
      Daniel
      a500a479