1. 18 3月, 2008 1 次提交
  2. 17 3月, 2008 1 次提交
  3. 07 3月, 2008 1 次提交
  4. 27 2月, 2008 1 次提交
  5. 20 2月, 2008 1 次提交
  6. 08 2月, 2008 1 次提交
    • 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
  7. 06 2月, 2008 2 次提交
  8. 05 2月, 2008 2 次提交
    • J
      Eliminate all uses of virBufferAdd with string literals. · fb66d5ab
      Jim Meyering 提交于
      * Makefile.maint (sc_prohibit_virBufferAdd_with_string_literal):
      New rule.
      * src/buf.h (virBufferAddLit): Define.
      * src/conf.c (virConfSaveValue): Use virBufferAddLit, in place
      of virBufferAdd everywhere possible.
      (virConfSaveEntry): Likewise.
      * src/qemu_conf.c (qemudGenerateXML, qemudGenerateNetworkXML): Likewise.
      * src/qemu_driver.c (qemudGetFeatures, qemudGetCapabilities): Likewise.
      * src/test.c (testDomainDumpXML, testNetworkDumpXML): Likewise.
      * src/xen_internal.c (xenHypervisorMakeCapabilitiesXML): Likewise.
      * src/xend_internal.c (xend_parse_sexp_desc_os): Likewise.
      (xend_parse_sexp_desc, sexpr_to_xend_topology_xml): Likewise.
      * src/xm_internal.c (xenXMDomainFormatXML, xenXMDomainPinVcpu): Likewise.
      * src/xml.c (virSaveCpuSet, virParseXenCpuTopology): Likewise.
      (virDomainParseXMLGraphicsDescImage): Likewise.
      (virDomainParseXMLGraphicsDescVFB, virDomainParseXMLOSDescHVM): Likewise.
      (virDomainParseXMLOSDescPV, virDomainParseXMLDiskDesc): Likewise.
      (virDomainParseXMLIfDesc, virDomainParseXMLDesc): Likewise.
      fb66d5ab
    • J
      Enable more checks for unmarked messages; fix violators. · ecaa6962
      Jim Meyering 提交于
      * Makefile.maint (sc_unmarked_diagnostics): Check for more functions.
      * src/conf.c (virConfParseValue): Remove trailing space in diagnostic.
      * src/libvirt.c (do_open, virDomainMigrate): Mark diagnostics.
      * src/xend_internal.c (do_connect, xenDaemonDomainDumpXMLByID): Likewise.
      (xenDaemonDomainDumpXMLByName, xenDaemonCreateLinux): Likewise.
      (xenDaemonDomainMigratePerform, xenDaemonDomainDefineXML): Likewise.
      * src/xml.c (virXPathString, virXPathNumber, virXPathLong): Likewise.
      (virXPathBoolean, virXPathNode, virXPathNodeSet): Likewise.
      (virDomainParseXMLOSDescHVM): Likewise.
      * src/xmlrpc.c (xmlRpcValueNew): Likewise.
      (xmlRpcValueUnmarshalDictElement): Likewise.
      ecaa6962
  9. 31 1月, 2008 1 次提交
  10. 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
  11. 22 1月, 2008 1 次提交
  12. 21 1月, 2008 1 次提交
    • J
      Adjust sexpr-related interfaces to be const-correct. · 64b3019d
      Jim Meyering 提交于
      * src/sexpr.c (sexpr_cons, append, sexpr_append, sexpr2string)
      (sexpr_lookup_key, sexpr_lookup, sexpr_node, sexpr_fmt_node):
      Add "const" attribute where appropriate.
      * src/xend_internal.c (sexpr_int, sexpr_float, sexpr_u64)
      (sexpr_uuid, sexpr_to_xend_domain_info, sexpr_to_xend_node_info)
      (sexpr_to_xend_topology_xml, sexpr_to_domain): Likewise.
      * src/sexpr.h: Adjust prototypes.
      64b3019d
  13. 20 1月, 2008 2 次提交
  14. 18 12月, 2007 1 次提交
  15. 06 12月, 2007 1 次提交
  16. 03 12月, 2007 1 次提交
  17. 27 11月, 2007 1 次提交
    • D
      * configure.in: when configuring with --prefix=/usr i.e. the same · 1338ed4f
      Daniel Veillard 提交于
        prefix as the installed libvirt, use the same localstatedir /var
        (instead of /usr/var) and sysconfdir /etc (instead of /usr/etc) to
        be able to connect to the system daemon, and use the system local
        options
      * src/xs_internal.c: avoid error message when non-root cannot open
        xenstore
      * src/xend_internal.c: avoid error message when non-root cannot
        directly access xend, in those 2 cases the proxy (or remote code)
        should implement the access so there is no need to raise the error
        there.
      Daniel
      1338ed4f
  18. 14 11月, 2007 1 次提交
  19. 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
  20. 31 10月, 2007 1 次提交
  21. 23 10月, 2007 1 次提交
  22. 22 10月, 2007 1 次提交
  23. 17 10月, 2007 1 次提交
  24. 16 10月, 2007 1 次提交
  25. 08 10月, 2007 1 次提交
  26. 05 10月, 2007 1 次提交
  27. 30 9月, 2007 4 次提交
  28. 28 9月, 2007 1 次提交
    • D
      * include/libvirt/libvirt.h[.in] src/driver.h src/openvz_driver.c · 4bf3bc9e
      Daniel Veillard 提交于
        src/qemu_driver.c src/remote_internal.c src/test.c
        src/xen_internal.[ch] src/xen_unified.c src/xend_internal.[ch]
        src/libvirt.c src/libvirt_sym.version: adding NUMA support patches
        from Beth Kon adding new virNodeGetCellsFreeMemory entry point
        and extending the virConnectGetCapabilities one. Fix a couple of
        issues in the patch and add to exported symbols from shared lib.
      * docs/virsh.pod docs/virsh.1 src/virsh.c: added new command
        freecell to get the available memory on the node or in a NUMA cell.
      * docs/*: updated and regenerated the documentation
      Daniel
      4bf3bc9e
  29. 20 9月, 2007 1 次提交
  30. 12 9月, 2007 2 次提交
  31. 10 9月, 2007 1 次提交
  32. 27 8月, 2007 1 次提交