1. 12 8月, 2008 7 次提交
  2. 11 8月, 2008 1 次提交
    • J
      tests: append a newline to expected-output files lacking NL-at-EOF · efb8492b
      Jim Meyering 提交于
      * tests/qemuxml2argvtest.c (testCompareXMLToArgvFiles): Adjust the
      code that creates "actual" output, so that it too produces a
      newline-terminated buffer.
      * tests/qemuxml2argvdata/*.args: Append a newline to each, via:
      for i in $(find|grep '\.args$'); do echo >> $i;done
      efb8492b
  3. 08 8月, 2008 5 次提交
    • D
      Fix const-correctness of virRUn and virExec · b3728d7d
      Daniel P. Berrange 提交于
      b3728d7d
    • D
      llow to add a disk as an USB device (QEmu/KVM) · 5ba37230
      Daniel Veillard 提交于
      * src/domain_conf.c src/domain_conf.h src/qemu_conf.c
        src/qemu_driver.c: patch from Guido Günther allowing to add
        disk as USB devices
      * docs/libvirt.rng: extend the schemas for the new value
      * tests/qemuxml2argvdata/qemuxml2argv-disk-usb.args
        tests/qemuxml2argvdata/qemuxml2argv-disk-usb.xml
        tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: add a specific
        test to the regression suite
      Daniel
      5ba37230
    • D
      Extend parser and add support for USB devices in QEmu/KVM · d1710d35
      Daniel Veillard 提交于
      * src/domain_conf.c src/domain_conf.h src/qemu_conf.c
        src/qemu_driver.c: Patch from Guido Günther allowing to pass
        usb devices to qemu/kvm
      * docs/libvirt.rng: add the new functionality to the grammar
      * tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.args
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.xml
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.args
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.xml
        tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: adding examples
        to the regression tests
      * libvirt.spec.in: fix the licence tag
      Daniel
      d1710d35
    • A
      fix typos in docs · c11e64ef
      Atsushi SAKAI 提交于
      docs/formatdomain.html docs/formatdomain.html.in docs/java.html docs/java.html.in
      c11e64ef
    • D
      * tests/domainschematest: patch from Guido Günther to fix RNG checking · f61ac900
      Daniel Veillard 提交于
        in out of tree builds.
      daniel
      f61ac900
  4. 07 8月, 2008 5 次提交
    • D
      Fix device name clash in src/veth.c · e94c1245
      Dan Smith 提交于
      e94c1245
    • J
      add the mkstemp module from gnulib · 7846f71f
      Jim Meyering 提交于
      * bootstrap (modules): Add mkstemp.
      The remainder of these changes are the result of running
      ./bootstrap, adding new files, and committing the result.
      * gnulib/lib/gettimeofday.c: New file.
      * gnulib/lib/mkstemp.c: New file.
      * gnulib/lib/tempname.c: New file.
      * gnulib/lib/tempname.h: New file.
      * gnulib/m4/gettimeofday.m4: New file.
      * gnulib/m4/mkstemp.m4: New file.
      * gnulib/m4/tempname.m4: New file.
      * gnulib/tests/test-gettimeofday.c: New file.
      * gnulib/lib/Makefile.am: Update.
      * gnulib/m4/gnulib-cache.m4: Likewise.
      * gnulib/m4/gnulib-comp.m4: Likewise.
      * gnulib/m4/inet_pton.m4: Likewise.
      * gnulib/tests/Makefile.am: Likewise.
      7846f71f
    • D
      * src/bridge.c: fix a build failure on RHEL4 · 2194f1c9
      Daniel Veillard 提交于
      Daniel
      2194f1c9
    • J
      update from gnulib · 57f15f77
      Jim Meyering 提交于
      * build-aux/mktempd (rand_bytes, mktempd):
      * build-aux/useless-if-before-free (FILE):
      * build-aux/vc-list-files:
      * gnulib/lib/.cvsignore:
      * gnulib/lib/Makefile.am:
      * gnulib/lib/poll.c (poll):
      * gnulib/lib/stdbool.in.h (_GL_STDBOOL_H, true):
      * gnulib/lib/stdio-impl.h (fp_, fp_ub):
      * gnulib/lib/stdio.in.h (vasprintf, obstack_printf)
      (obstack_vprintf):
      * gnulib/lib/vasnprintf.c (_GNU_SOURCE, sprintf, IF_LINT, exp)
      (remainder, scale10_round_decimal_long_double)
      (scale10_round_decimal_double, pad_ourselves):
      * gnulib/m4/gnulib-cache.m4:
      * gnulib/m4/gnulib-common.m4 (gl_MODULE_INDICATOR):
      * gnulib/m4/gnulib-tool.m4 (gl_LOCAL_DIR, gl_M4_BASE, gl_PO_BASE)
      (gl_DOC_BASE, gl_TESTS_BASE, gl_WITH_TESTS, gl_LIB, gl_LGPL)
      (gl_MAKEFILE_NAME, gl_MACRO_PREFIX, gl_PO_DOMAIN, gl_VC_FILES):
      * gnulib/m4/lock.m4 (gl_LOCK_EARLY_BODY, gl_PREREQ_LOCK)
      (gl_DISABLE_THREADS):
      * gnulib/m4/onceonly.m4:
      * gnulib/m4/posix-shell.m4 (gl_POSIX_SHELL):
      * gnulib/m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS):
      * gnulib/tests/test-getaddrinfo.c (ENABLE_DEBUGGING, dbgprintf)
      (simple):
      * gnulib/tests/test-stdint.c (UINTMAX_MAX, or):
      * gnulib/tests/test-vc-list-files-cvs.sh (compare):
      * gnulib/tests/test-vc-list-files-git.sh (compare):
      57f15f77
    • J
      complete the MinGW inet_pton portability fix · 34afcb5b
      Jim Meyering 提交于
      * gnulib/m4/inet_pton.m4: New file.  Required for MinGW.
      * gnulib/m4/gnulib-comp.m4: Regenerate via gnulib-tool.
      34afcb5b
  5. 06 8月, 2008 6 次提交
    • J
      fix failing "make syntax-check" · 3fb53d11
      Jim Meyering 提交于
      * src/stats_linux.c: Don't include <c-ctype.h> no longer used.
      3fb53d11
    • J
      work around MinGW build failure due to its lack of inet_aton · 78315851
      Jim Meyering 提交于
      Use inet_pton instead; pull in gnulib's module by the same name.
      * src/network_conf.c (virNetworkDefParseXML): Use inet_pton,
      rather than inet_aton.
      * bootstrap (modules): Add inet_pton.
      * gnulib/lib/inet_pton.c: New file, from gnulib.
      78315851
    • D
      * docs/formatdomain.html docs/formatdomain.html.in: fix memory unit · ed3c9c38
      Daniel Veillard 提交于
        as pointed out by matthew chan it's kilobytes
      Daniel
      ed3c9c38
    • C
      DanB pointed out that my sexpr xend_internal patch from yesterday broke one of · b8fb68be
      Chris Lalancette 提交于
      the regression tests.  The problem is that the xenDaemonFormatSxpr{Disk,Net}
      functions are shared between domain creation time and attaching disk time.
      Unfortunately, though, Xend expects something different during these two times.
       During domain creation time, it wants the "(device" in front of the sexpr,
      while during attach time it does not.  To remedy this situation, I added a flag
      to these two functions to differentiate between these two modes.  With this
      patch in place, all of the regression tests pass.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      b8fb68be
    • C
      With the recent refactoring of the domain code, plus the changes with the Xend · 6335c2a0
      Chris Lalancette 提交于
      code, a couple of bugs were introduced into the attach-disk and attach-interface
      functionality.  This patch fixes 3 bugs:
      
      1)  In xenDaemonAttachDevice(), there is a switch statement to determine which
      of the xenDaemonFormatSxpr{Disk,Net} functions to call.  Unfortunately, the case
      statements are all missing the corresponding "break", so we always fall-through
      to the default error case.  This patch just adds the appropriate break statements.
      
      2)  (minor) In xenDaemonDomainDefineXML (that's a mouthful!), there is a stray
      "fprintf".  This is now converted to a proper virXendError().
      
      3)  xenDaemonFormatSxpr{Disk,Net} were adding an extra (device to the front of
      the sexpr expressions that xend did not expect (this is Xend on RHEL 5.2).
      Because of this, the attaches would fail.  The patch fixes this by removing the
      (device from the front, which makes attach-disk and attach-interface work again.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      6335c2a0
    • C
      Recently upstream Xen added support for having xvd devices > 16. For the most · 8c300028
      Chris Lalancette 提交于
      part, this doesn't really concern libvirt, since for things like attach and
      detach we just pass it through and let xend worry about whether it is supported
      or not.  The one place this breaks down is in the stats collecting code, where
      we need to figure out the device number so we can go digging in /sys for the
      statistics.
      
      To remedy this, I've re-written xenLinuxDomainDeviceID() to use regular
      expressions to figure out the device number from the name.  The major advantage
      is that now xenLinuxDomainDeviceID() looks fairly identical to
      tools/python/xen/util/blkif.py (in the Xen sources), so that adding additional
      devices in the future should be much easier.  It also reduces the size of the
      code, and, in my opinion, the code complexity.
      
      With this patch in place, I was able to get block statistics both on older style
      devices (/dev/xvda) and on the new, expanded devices (/dev/xvdaa).
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      8c300028
  6. 05 8月, 2008 2 次提交
  7. 04 8月, 2008 1 次提交
  8. 01 8月, 2008 13 次提交