1. 15 5月, 2008 2 次提交
  2. 13 5月, 2008 1 次提交
    • D
      Enable libvirtd drivers to handle signals, in lxc, sigchld triggers vm cleanup · 94311de5
      David L. Leskovec 提交于
      Mon May 12 23:32:21 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>
      
      	* qemud/qemud.c: get siginfo with signals, distribute to drivers that
          register a handler
      	* src/driver.h: add sighandler function to state driver table
      	* src/internal.h: define virStateSigDispatcher functions
      	* src/libvirt.c: add __virStateSigDispatcher function
      	* src/libvirt_sym.version: add __virStateSigDispatcher
      	* src/lxc_driver.c: add sig handler function, cleanup vm when sigchld
          received from container process
      	* src/qemu_driver.c: NULL for sig handler (no handler) in state driver
      	* src/remote_internal.c: NULL for sig handler (no handler) in state driver
      	* src/storage_driver.c: NULL for sig handler (no handler) in state driver
      94311de5
  3. 02 5月, 2008 1 次提交
  4. 30 4月, 2008 1 次提交
    • J
      remove useless tests before xmlFree · 0c37f598
      Jim Meyering 提交于
      * src/qemu_conf.c (qemudParseDiskXML, qemudParseInterfaceXML):
      (qemudParseInputXML, qemudParseDhcpRangesXML):
      * src/remote_internal.c (doRemoteOpen):
      * src/storage_conf.c (virStoragePoolDefParseDoc):
      * src/xm_internal.c (xenXMParseXMLDisk, xenXMParseXMLVif):
      (xenXMParseXMLToConfig, xenXMAttachInterface):
      * src/xml.c (virDomainParseXMLDiskDesc, virDomainParseXMLIfDesc):
      (virDomainXMLDevID):
      0c37f598
  5. 11 4月, 2008 2 次提交
  6. 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
  7. 27 3月, 2008 3 次提交
    • J
      error: mark most string arguments for translation · 5bb81e1d
      Jim Meyering 提交于
      Also mark some arguments to __virRaiseError.
      * Makefile.maint (msg_gen_function): Add error.
      * po/POTFILES.in: Add src/openvz_conf.c and src/openvz_driver.c.
      * src/openvz_conf.c (openvzParseXML, openvzGetVPSInfo): Mark strings.
      * src/openvz_driver.c (openvzDomainLookupByID): Likewise.
      (openvzDomainLookupByUUID, openvzDomainLookupByName): Likewise.
      (openvzDomainGetInfo, openvzDomainShutdown, openvzDomainReboot)
      (openvzDomainCreate, openvzDomainUndefine): Likewise.
      * src/remote_internal.c (check_cert_file): Likewise.
      (negotiate_gnutls_on_connection, verify_certificate): Likewise.
      (remoteAuthenticate, addrToString, remoteAuthSASL): Likewise.
      (remoteAuthPolkit, call, really_read_buf): Likewise.
      5bb81e1d
    • J
      Convert diagnostics like "VAR > MAX_VAR" to translatable messages. · f1eed04b
      Jim Meyering 提交于
      * src/remote_internal.c (errorf): New function.
      (remoteListDomains, remoteDomainPinVcpu, remoteDomainGetVcpus):
      (remoteListDefinedDomains, remoteListNetworks):
      (remoteListDefinedNetworks): Convert strings to be translatable,
      and also to include offending and maximum values.  Use errorf.
      f1eed04b
    • D
      Linux container fixes, move driver in the daemon. · 425cf2e7
      Daniel Veillard 提交于
      * src/lxc_conf.c src/lxc_conf.h src/lxc_driver.c src/remote_internal.c:
        applied patch from Dan Berrange to change the way the lxc driver
        works, migrating the support in the daemon, it also removes some
        compilation issues and teh way the configuration files are named.
      Daniel
      425cf2e7
  8. 18 3月, 2008 1 次提交
  9. 17 3月, 2008 1 次提交
  10. 26 2月, 2008 1 次提交
  11. 20 2月, 2008 1 次提交
  12. 06 2月, 2008 1 次提交
  13. 04 2月, 2008 1 次提交
  14. 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
  15. 20 1月, 2008 1 次提交
  16. 15 1月, 2008 1 次提交
  17. 14 1月, 2008 2 次提交
  18. 06 1月, 2008 1 次提交
    • R
      Miscellaneous fixes for building on Windows (MinGW). · 029aef1d
      Richard W.M. Jones 提交于
      	* configure.in: xdr functions may require -lxdr.
      	* configure.in, src/Makefile.am: Extra linking flags for
      	  building libvirt DLL.
      	* src/socketcompat.h: Hide Windows Winsock incompatibilities
      	  in a separate header file.
      	* src/remote_internal.c: Switch to using socketcompat.h /
      	  socket_errno().
      	* src/test.c: Switch to using socketcompat.h.
      	* gnulib/lib/arpa/.cvsignore: Ignore another generated file.
      	* src/qparams.c: Include <config.h>.
      029aef1d
  19. 03 1月, 2008 1 次提交
  20. 18 12月, 2007 1 次提交
  21. 17 12月, 2007 1 次提交
  22. 16 12月, 2007 1 次提交
  23. 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
  24. 07 12月, 2007 1 次提交
    • R
      Fri Dec 7 14:49:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · 0d14fc0c
      Richard W.M. Jones 提交于
      	* src/console.c, src/console.h, src/virsh.c: Disable
      	  text console on Windows.
      	* src/libvirt.c: Use replacement getpass from Gnulib.
      	* src/libvirt.c: Initialize Winsock before use.
      	* src/remote_internal.c: Header file fixes for Windows.
      	  Don't fail if AI_ADDRCONFIG isn't defined.  Disable
      	  unsupported stuff under Windows.
      	* src/uuid.c: ENODATA unavailable on Windows, use EIO instead.
      	* src/virsh.c: No uid_t / getuid on Windows.
      	* src/virsh.c: No O_SYNC on Windows.
      0d14fc0c
  25. 06 12月, 2007 6 次提交
    • R
      Thu Dec 6 12:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · ec38eb93
      Richard W.M. Jones 提交于
              * src/remote_internal.c: Clean up a warning if neither SASL
                nor PolKit are enabled.
      ec38eb93
    • J
      Use gnulib, starting with its physmem and getaddrinfo modules. · 261e7581
      Jim Meyering 提交于
      New files go into these directories:
        gnulib/lib
        gnulib/m4
        gnulib/tests
      
      * bootstrap: A wrapper around gnulib-tool.
      * configure.in: Invoke gl_EARLY and gl_INIT, being careful to put gl_EARLY
      before any macro that uses AC_COMPILE_IFELSE.
      (AC_OUTPUT): Add lib/Makefile and gl-tests/Makefile.  Remove m4/Makefile.
      * Makefile.am (SUBDIRS): Add gnulib/lib and remove m4.  Add gnulib/tests
      early enough that those tests run before any libvirt unit tests.
      * m4/Makefile.am: Remove file.  Not needed.
      * src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS, libvirt_la_LIBADD): Add ../gnulib/lib/libgnu.la.
      * src/nodeinfo.c: Include "physmem.h".
      * qemud/qemud.c, src/remote_internal.c: Include "getaddrinfo.h".
      (MEMINFO_PATH, linuxNodeInfoMemPopulate): Remove definitions.
      (virNodeInfoPopulate): Use physmem_total, not linuxNodeInfoMemPopulate.
      * tests/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS): Add ../gnulib/lib/libgnu.la.
      * qemud/Makefile.am (libvirtd_LDADD): Add ../gnulib/lib/libgnu.la.
      * tests/nodeinfotest.c (linuxTestCompareFiles): No longer read total
      memory from a file.
      Update expected output not to include "Memory: NNNN"
      * tests/nodeinfodata/linux-nodeinfo-1.txt:
      * tests/nodeinfodata/linux-nodeinfo-2.txt:
      * tests/nodeinfodata/linux-nodeinfo-3.txt:
      * tests/nodeinfodata/linux-nodeinfo-4.txt:
      * tests/nodeinfodata/linux-nodeinfo-5.txt:
      * tests/nodeinfodata/linux-nodeinfo-6.txt:
      * src/test.c [WITH_TEST]: Remove definition of _GNU_SOURCE that
      would conflict with the one now in "config.h".
      * autogen.sh: Add -I gnulib/m4.
      * src/conf.c, src/sexpr.c: Don't define _GNU_SOURCE.
      Instead, include "config.h".
      * qemud/qemud.c: Remove definition of _GNU_SOURCE.
      * src/openvz_driver.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/remote_internal.c: Likewise.
      
      * configure.in: Use AC_CONFIG_AUX_DIR(build-aux), so that a bunch
      of gettextize-generated files go into build-aux/, rather than in
      the top-level directory.
      * .cvsignore: Adjust.
      * build-aux/.cvsignore: New file.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      261e7581
    • D
      Fix compile issues when SASL is disabled · 2add6b30
      Daniel P. Berrange 提交于
      2add6b30
    • D
    • D
    • D
      Added PolicyKit authentication support · 282342c1
      Daniel P. Berrange 提交于
      282342c1
  26. 05 12月, 2007 2 次提交
  27. 01 12月, 2007 1 次提交
  28. 28 11月, 2007 1 次提交
    • J
      When reporting errors, use "conn" whenever possible. · 59a37581
      Jim Meyering 提交于
      * src/remote_internal.c: change all error (NULL, ... to error (conn, ...
      (check_cert_file): Add+use parameter, conn.
      Adjust callers.
      (initialise_gnutls): The "conn" parameter *is* used, so remove
      ATTRIBUTE_UNUSED.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      59a37581