1. 14 1月, 2013 18 次提交
  2. 12 1月, 2013 5 次提交
  3. 11 1月, 2013 17 次提交
    • P
      network: Report real error if addition of firewall rules fails · e6d74d8d
      Peter Krempa 提交于
      If addition of rules in networkAddIptablesRules() failed the real error
      was masked by error reported when trying to clean up the remaining
      rules.
      
      With this patch the original error message is saved and set back after
      the removal is complete.
      e6d74d8d
    • P
      virsh: Reformat output of virsh net-list · d0b8bc85
      Peter Krempa 提交于
      This patch changes whitespace and the length of the separation line from
      this format:
      
      $ virsh net-list --all
      Name                 State      Autostart     Persistent
      --------------------------------------------------
      default              inactive   yes           yes
      
      to
      
      $ virsh net-list --all
       Name                 State      Autostart     Persistent
      ----------------------------------------------------------
       default              inactive   yes           yes
      
      to match the output of virsh list.
      d0b8bc85
    • P
      network: bridge: Fix regression when defining persistent networks · bb19491c
      Peter Krempa 提交于
      Commit 0211fd6e introduced regression
      where newly defined networks were not made persistent.
      
      This patch makes the network persistent on each successful definition.
      bb19491c
    • D
      054bbfcb
    • D
      Convert HAVE_AUDIT to WITH_AUDIT · e424220a
      Daniel P. Berrange 提交于
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      e424220a
    • D
      c45fed8a
    • D
      Convert HAVE_SASL to WITH_SASL · 321a7d53
      Daniel P. Berrange 提交于
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      321a7d53
    • D
      a38dbf66
    • D
      Convert HAVE_SANLOCK to WITH_SANLOCK · 4da3000c
      Daniel P. Berrange 提交于
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      4da3000c
    • D
      654c709b
    • D
      Convert HAVE_YAJL into WITH_YAJL · 49a1c160
      Daniel P. Berrange 提交于
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      49a1c160
    • D
      Add some autoconf helper macros for checking for libraries · cd699ed1
      Daniel P. Berrange 提交于
      Most checks for libraries take the same format
      
        * --with-libFOO=yes|no|check|/some/path  argument
        * check for a function NNN in libFOO.so
        * check for a header file DDD/HHH.h
        * Define a WITH_FOO config.h symbol
        * Define a WITH_FOO make conditional
        * Substitute FOO_CFLAGS and FOO_LIBS make variables
        * Print CFLAGS & LIBS summary at the end
      
      Doing all this correctly is rather difficult, typically
      done by copy+paste of a previous usage. Further small
      improvements people make are not applied to all previous
      usages.
      
      Improve this by creating some helper macros to apply
      good practice. First, to perform the actual checks:
      
        LIBVIRT_CHECK_LIB([SELINUX], [selinux],
           [getfilecon], [selinux/selinux.h])
      
      This checks for 'getfilecon' in -lselinux, and the
      existence of 'selinux/selinux.h' header file. If successful
      it sets SELINUX_CFLAGS and SELINUX_LIBS. The WITH_SELINUX
      config.h macro and WITH_SELINUX make conditional are also
      defined.
      
      In some cases we need to check two variants of the same
      library
      
        LIBVIRT_CHECK_LIB_ALT([SASL], [sasl2],
                              [sasl_client_init], [sasl/sasl.h],
                              [SASL1], [sasl],
                              [sasl_client_init], [sasl/sasl.h])
      
      This checks for sasl_client_init in libsasl2, and if that
      is not found, checks sasl_client_init in libsasl. If the
      first check succeeds WITH_SASL is set, while if the second
      check succeeds *both* WITH_SASL and WITH_SASL1 are set.
      
      If the library supports pkg-config, then another variant
      is available
      
        LIBVIRT_CHECK_PKG([AVAHI], [avahi-client], [0.6.0])
      
      This checks for avahi-client >= 0.6.0 via pkg-config
      and sets WITH_AVAHI if found.
      
      Finally to print a summary of CFLAGS & LIBs found (if any):
      
        LIBVIRT_RESULT_LIB([SELINUX])
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      cd699ed1
    • Y
      build: require avahi instead of avahi-libs on rhel5. · 8a883b0c
      Yufang Zhang 提交于
      On rhel5, libs of avahi are packaged into avahi instead of avahi-libs.
      Actually, there is no avahi-libs package shipped with rhel5. This patch
      fixes this by requiring avahi on rhel5.
      8a883b0c
    • J
      storage: Resolve resource leak using 'vol' buffer · 439b72ec
      John Ferlan 提交于
      439b72ec
    • J
      phyp: Resolve some file descriptor leaks · b1740967
      John Ferlan 提交于
      The phypUUIDTable_Push and phypUUIDTable_Pull leaked their file descriptors
      on normal return.  Each function had an unnecessary use of creating a buffer
      to print conn->uri->user and needed a bit better flow control. I also noted
      that the Read function had a cut-n-paste error from the write function on a
      couple of VIR_WARN's.
      
      The openSSHSession leaked the sock on the failure path.  Additionally that
      turns into the internal_socket in the phypOpen code.  That was neither saved
      nor closed on any path. So I used the connnection_data->sock field to save
      the socket for eventual close. Of interest here is that phypExec used the
      connection_data->sock field even though it had never been initialized.
      b1740967
    • E
      maint: don't distribute generated .def files · daa886b6
      Eric Blake 提交于
      I ran 'make dist' in the directory left over from ./autobuild.sh
      (which was configured for a mingw cross build); the resulting
      tarball had more files than 'make dist' on a normal Linux build.
      I traced it to the fact that we were distributing a generated
      file, but only when configure said the end user had to generate
      the file in the first place.  In the process, I noticed that
      we had some difference in symbol file names; I added a comment
      explaining why the difference exists (after first trying to
      normalize the names and hitting VPATH build failures).
      
      * configure.ac (LIBVIRT_QEMU_SYMBOL_FILE): Add some comments.
      * src/Makefile.am (EXTRA_DIST): No need to ship a generated file;
      particularly since which file is built depends on configure results.
      daa886b6
    • E
      spec: remove redundant %if · 86007cba
      Eric Blake 提交于
      The daemon-driver-{qemu,lxc} packages are only built if
      %{with_driver_modules} is specified, so they do not need to
      further test this condition.  Likewise, the daemon package
      is only built if %{with_libvirtd} is specified, so it does
      not need to further test this condition.
      
      * libvirt.spec.in (daemon-driver-qemu, daemon-driver-lxc):
      Unconditionally require libvirt-daemon-driver-network.
      (daemon): Unconditionally include lock-driver files.
      86007cba