1. 22 12月, 2012 1 次提交
    • E
      blockjob: fix memleak that prevented block pivot · 08230dbd
      Eric Blake 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=888426
      
      The code for doing a block-copy was supposed to track the destination
      file in drive->mirror, but was set up to do all mallocs prior to
      starting the copy so that OOM wouldn't leave things partially started.
      However, the wrong variable was being written; later in the code we
      silently did 'disk->mirror = mirror' which was still NULL, and thus
      leaking memory and leaving libvirt to think that the mirror job was
      never started, which prevented a pivot operation after a copy.
      Problem introduced in commit 35c7701c.
      
      * src/qemu/qemu_driver.c (qemuDomainBlockCopy): Initialize correct
      variable.
      08230dbd
  2. 21 12月, 2012 35 次提交
  3. 20 12月, 2012 3 次提交
    • E
      maint: formatting cleanups in buf.c · 258208e1
      Eric Blake 提交于
      * src/util/buf.c: Use consistent formatting.
      258208e1
    • E
      build: use strchr now that we can work around broken gcc · 622ceb34
      Eric Blake 提交于
      Revert the complex workaround of commit 39d91e9f, now that we have
      a nicer framework for shutting up broken gcc.
      
      * src/util/buf.c (virBufferEscape): Simplify.
      622ceb34
    • E
      build: make broken -Wlogical-op test be gcc-only · 6e148567
      Eric Blake 提交于
      Commit 8b8fcdea introduced a check for broken gcc -Wlogical-op,
      but did not guard the check against non-gcc compilers, which might
      lead to spurious failures when another compiler encounters an
      unknown pragma.  Additionally, all of our compiler warning logic
      should belong in a single file, and use cache variables to allow
      overriding the decision at configure time if necessary.
      
      * configure.ac (BROKEN_GCC_WLOGICALOP): Move...
      * m4/virt-compile-warnings.m4 (LIBVIRT_COMPILE_WARNINGS): ...here,
      and update to modern autoconf idioms.
      6e148567
  4. 19 12月, 2012 1 次提交