1. 25 4月, 2016 8 次提交
  2. 21 4月, 2016 8 次提交
    • A
      dist: ln(1) is not guaranteed to have a '-f' option · d0062fb9
      Andrea Bolognani 提交于
      According to the autoconf manual, using '$(LN_S) -f' is not
      portable; remove the target explicitly beforehand to work around
      this limitation.
      
      Adjust some slightly awkward indentation while at it.
      d0062fb9
    • C
      virsh: Don't clear old connection if 'connect $uri' fails · a02a859b
      Cole Robinson 提交于
          virsh # list --all
           Id    Name                           State
          ----------------------------------------------------
           1     test                           running
      
          virsh # connect frob
          error: Failed to connect to the hypervisor
          error: no connection driver available for frob
      
          virsh # list --all
          error: failed to connect to the hypervisor
          error: no valid connection
          error: no connection driver available for frob
      
      Seems sensible IMO to just not clear out the old connection state
      until the new virConnectOpen succeeds.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=829160
      a02a859b
    • R
      virsh: re-fix help printing without connection · 384dde55
      Roman Bogorodskiy 提交于
      Re-do 0217089b so it does not add regression for commit c0726e07 that allowed to
      print help without making a connection to the daemon.
      384dde55
    • A
      build: Use $(LN_S) safely · ed5c9297
      Andrea Bolognani 提交于
      The autoconf documentation recommends to always use this
      construct when creating symbolic links with $(LN_S) to avoid
      unexpected behavior.
      ed5c9297
    • A
      build: Overwrite existing symbolic links · ce8379ee
      Andrea Bolognani 提交于
      The current rule fails if the target already exists:
      
        cd /home/jenkins/build/libvirt/lib && \
          ln -s libnss_libvirt.so.1 nss_libvirt.so.1
        ln: nss_libvirt.so.1: File exists
        Makefile:3357: recipe for target 'install-exec-hook' failed
      
      However, all other rules concerned with installation are
      idempotent and will happily overwrite an existing target,
      so this one should as well.
      ce8379ee
    • P
      virsh: perf: Remove unnecessary 'error' label · b4bc800c
      Peter Krempa 提交于
      The only place that uses it doesn't warrant a separate label.
      b4bc800c
    • P
      virsh: perf: Don't leak domain · f4f916a9
      Peter Krempa 提交于
      After failing to parse the perf event list, the code would return
      failure without freeing the previously acquired object. Rearrange the
      code to avoid the problem.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329046
      f4f916a9
    • R
      virsh: don't override connection URI from argv · 0217089b
      Roman Bogorodskiy 提交于
      Currently, if a connection URI was specified on the command line by the
      '-c' switch, virsh connects to it, but after connecting overrides its
      value with the one it tries to obtain from the VIRSH_DEFAULT_CONNECT_URI
      environment variable.
      
      This makes virsh connecting to the wrong URI if it disconnects from the
      hypervisor and then tries to reconnect, and also leaks the original connname.
      
      Fix by calling virGetEnvBlockSUID() before virshParseArgv().
      0217089b
  3. 20 4月, 2016 2 次提交
  4. 18 4月, 2016 1 次提交
  5. 16 4月, 2016 1 次提交
    • J
      tools: Fix memory leak · cb31d618
      John Ferlan 提交于
      Coverity found that commit id 'c661b675' needed to create a cleanup
      path to handle the closing of 'fp' if the virBitmapNewQuiet failed.
      cb31d618
  6. 15 4月, 2016 4 次提交
  7. 14 4月, 2016 2 次提交
  8. 13 4月, 2016 4 次提交
  9. 11 4月, 2016 1 次提交
  10. 09 4月, 2016 1 次提交
    • R
      nss: properly include syms files to dist · ec5b9331
      Roman Bogorodskiy 提交于
      Explicitly add Linux and BSD syms files for nss to EXTRA_DIST
      instead of using the LIBVIRT_NSS_SYMBOL_FILE variable, because its value
      will point to either Linux or BSD syms file, but we need to ship both.
      ec5b9331
  11. 08 4月, 2016 1 次提交
    • A
      host-validate: Be more careful when checking for cgroup mounts · f854c559
      Andrea Bolognani 提交于
      The existing code is built on the assumption that no cgroup
      name can appear as part of another cgroup name; moreover, cgroups
      are expected to always be listed in a specific order.
      
      If that's not the case, eg. 'cpuacct' is listed before 'cpu', the
      algorithm fails to detect the cgroup mount point.
      
      Rewrite it to get rid of such assumptions.
      f854c559
  12. 07 4月, 2016 1 次提交
    • A
      host-validate: Improve CPU flags processing · c661b675
      Andrea Bolognani 提交于
      Instead of relying on substring search, tokenize the input
      and process each CPU flag separately. This ensures CPU flag
      detection will continue to work correctly even if we start
      looking for CPU flags whose name might appear as part of
      other CPU flags' names.
      
      The result of processing is stored in a virBitmap, which
      means we don't have to parse /proc/cpuinfo in its entirety
      for each single CPU flag we want to check.
      
      Moreover, use of the newly-introduced virHostValidateCPUFlag
      enumeration ensures we don't go looking for random CPU flags
      which might actually be simple typos.
      c661b675
  13. 06 4月, 2016 3 次提交
  14. 01 4月, 2016 1 次提交
  15. 31 3月, 2016 2 次提交