1. 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
  2. 06 2月, 2008 1 次提交
  3. 30 1月, 2008 1 次提交
    • 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
  4. 17 1月, 2008 1 次提交
  5. 07 12月, 2007 1 次提交
    • R
      Fri Dec 7 14:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · f1f94721
      Richard W.M. Jones 提交于
      	* src/.cvsignore: Ignore *.loT files (generated under Windows).
      	* proxy/libvirt_proxy.c: Bail out earlier --without-xen.
      	* src/proxy_internal.c: Don't build proxy client side if
      	  configured --without-xen.
      	* src/iptables.c, src/iptables.h: Disable this code if
      	  configured --without-qemu.
      	* src/nodeinfo.c: If no 'uname' function, set model name to
      	  empty string (for Windows).
      	* src/xen_unified.h, src/util.c, src/test.c: Include <winsock2.h>
      	  on Windows.
      	* src/util.c: Disable virExec* and virFileLinkPointsTo on
      	  MinGW.
      f1f94721
  6. 06 12月, 2007 2 次提交
    • 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
    • D
  7. 03 12月, 2007 1 次提交
  8. 14 11月, 2007 1 次提交
  9. 31 10月, 2007 1 次提交
  10. 14 8月, 2007 1 次提交
  11. 06 7月, 2007 2 次提交
    • R
      Fri Jul 6 16:08:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 4ea0ef79
      Richard W.M. Jones 提交于
      	* src/proxy_internal.c, src/proxy_internal.h,
      	  src.xen_internal.c, src/xen_internal.h,
      	  src/xen_unified.c, src/xen_unified.h,
      	  src/xend_internal.c, src/xend_internal.h,
      	  src/xm_internal.c, src/xm_internal.h,
      	  src/xs_internal.c, src/xs_internal.h: The interface
      	  between xen_unified.c and its underlying driver now uses
      	  a custom structure (struct xenUnifiedDriver) instead
      	  of reusing virDriver.
      	* src/xen_unified.c: virDomainLookup* functions in Xen
      	  now throw VIR_ERR_NO_DOMAIN if the domain does not exist.
      	* src/xs_internal.c: Fix indentation.
      4ea0ef79
    • 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
  12. 26 6月, 2007 1 次提交
  13. 15 6月, 2007 1 次提交
  14. 05 6月, 2007 1 次提交
    • D
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in · 652f3bb1
      Daniel Veillard 提交于
        src/driver.h src/libvirt.c src/libvirt_sym.version
        src/proxy_internal.c src/qemu_internal.c src/test.c
        src/virsh.c src/xen_internal.c src/xen_internal.h src/xen_unified.c
        src/xend_internal.c src/xm_internal.c src/xs_internal.c:
        Applied patches from Atsushi SAKAI to add the scheduler API,
        with patch from Rich Jones for error handing, and a number
        of cleanups and more error checking from me
      Daniel
      652f3bb1
  15. 03 5月, 2007 1 次提交
  16. 01 5月, 2007 2 次提交
  17. 04 4月, 2007 1 次提交
  18. 16 3月, 2007 1 次提交
    • D
      * include/libvirt/libvirt.h[.in] include/libvirt/virterror.h · 635ae389
      Daniel Veillard 提交于
        proxy/libvirt_proxy.c qemud/Makefile.am qemud/conf.c qemud/conf.h
        qemud/dispatch.c qemud/internal.h qemud/protocol.h
        src/driver.h src/internal.h src/libvirt.c src/libvirt_sym.version
        src/proxy_internal.c src/proxy_internal.h src/qemu_internal.c
        src/test.c src/virsh.c src/virterror.c src/xen_internal.c
        src/xen_internal.h src/xend_internal.c src/xm_internal.c
        src/xml.h src/xs_internal.c: applied patch from Richard Jones
        adding virConnectGetCapabilities(), plus various small little
        fixes
      * docs/*: fixed the api extractor script and regenerated
      Daniel
      635ae389
  19. 08 3月, 2007 1 次提交
    • D
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in · b412cfad
      Daniel Veillard 提交于
        src/driver.h src/libvirt.c src/libvirt_sym.version
        src/proxy_internal.c src/qemu_internal.c src/test.c src/virsh.c
        src/xen_internal.c src/xen_internal.h src/xend_internal.c
        src/xm_internal.c src/xs_internal.c: applied patch from
        Masayuki Sunou to add and entry point to check the maximum
        number of virtual CPU supported by a virtualization mechanism
      * doc/*.html doc/libvirt-*.xml: regenerated the interfaces descriptions
        and associated docs.
      Daniel
      b412cfad
  20. 23 2月, 2007 1 次提交
    • M
      Fri Feb 23 08:49:12 IST 2007 Mark McLoughlin <markmc@redhat.com> · 57a18198
      Mark McLoughlin 提交于
              * include/libvirt/libvirt.h.in, src/libvirt.c add
              virDomainGetAutostart(), virDomainSetAutostart(),
              virNetworkGetAutostart() and virNetworkSetAutostart().
      
              * src/libvirt_sym.version: export the API
      
              * src/driver.h: add methods to the driver vtables.
      
              * src/proxy_internal.c, src/qemu_internal.c,
                src/test.c, src/xen_internal.c, src/xend_internal.c,
                src/xm_internal.c, src/xs_internal.c: set those
              methods to NULL
      57a18198
  21. 17 2月, 2007 1 次提交
  22. 14 2月, 2007 1 次提交
    • 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
  23. 23 1月, 2007 3 次提交
    • 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
    • M
      Mon Jan 22 16:17:25 IST 2007 Mark McLoughlin <markmc@redhat.com> · 26d6bbf3
      Mark McLoughlin 提交于
      	* src/driver.h: remove Free(), GetName(), GetID() and
      	GetUUID() driver methods.
      
      	* src/proxy_internal.c,	src/test.c, src/xen_internal.c,
      	src/xend_internal.c, src/xm_internal.c,	src/xs_internal.c:
      	Update driver vtables.
      26d6bbf3
  24. 23 11月, 2006 1 次提交
    • D
      * docs//*: regenerated · 66ab526b
      Daniel Veillard 提交于
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in src/driver.h
        src/libvirt.c src/proxy_internal.c src/test.c src/virsh.c
        src/xen_internal.c src/xend_internal.c src/xm_internal.c
        src/xs_internal.c: added support for dumping core of domains
        assuming a xend with the latest patch to do so.
      Daniel
      66ab526b
  25. 17 11月, 2006 1 次提交
    • D
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in · dc28f35f
      Daniel Veillard 提交于
        src/driver.h src/libvirt.c src/libvirt_sym.version
        src/proxy_internal.c src/test.c src/xen_internal.c
        src/xend_internal.c src/xml.c src/xml.h src/xs_internal.c:
        intagrated patch from Michel Ponceau to add hot-plug devices
        support to the API, integrated in driver API and fixed
        a few small things. Still a TODO in src/xml.c about
        moving xenstore direct accesses to a new routine.
      Daniel
      dc28f35f
  26. 16 11月, 2006 1 次提交
  27. 08 11月, 2006 2 次提交
  28. 21 9月, 2006 1 次提交
  29. 30 8月, 2006 1 次提交
  30. 17 8月, 2006 1 次提交
  31. 09 8月, 2006 2 次提交
  32. 03 7月, 2006 2 次提交