1. 10 3月, 2013 2 次提交
  2. 08 3月, 2013 1 次提交
  3. 23 2月, 2013 3 次提交
  4. 13 2月, 2013 2 次提交
  5. 04 2月, 2013 1 次提交
  6. 31 1月, 2013 1 次提交
    • J
      Enforce return check on virAsprintf() calls · 46b1d8cf
      John Ferlan 提交于
      Way back when I started making changes for Coverity messages my first set
      were to a bunch of CHECKED_RETURN errors.  In particular virAsprintf() had
      a few callers that Coverity noted didn't check their return (although some
      did check if the buffer being printed to was NULL or not).
      
      It was suggested at the time as a further patch an ATTRIBUTE_RETURN_CHECK
      should be added to virAsprintf(), see:
      
      https://www.redhat.com/archives/libvir-list/2013-January/msg00120.html
      
      This patch does that and fixes a few more instances not found by Coverity
      that failed the check.
      46b1d8cf
  7. 26 1月, 2013 1 次提交
  8. 23 1月, 2013 1 次提交
    • P
      virsh-domain: Refactor error paths for cmdCPUStats · a54f25a9
      Peter Krempa 提交于
      This patch fixes the following issues in the cpu-stats virsh command:
      
      1) Renames label failed_params to no_memory to match coding style
      2) Uses proper typed parameter cleanup in error paths to avoid leaks
      3) Adds a ret variable and simplifies error labels
      4) Changes error message to a slightly more descriptive one and gets rid
         of the newline at the end:
      
      Before:
      $ virsh cpu-stats tr
      error: Failed to virDomainGetCPUStats()
      
      error: Requested operation is not valid: domain is not running
      
      After:
      $ tools/virsh cpu-stats tr
      error: Failed to retrieve CPU statistics for domain 'tr'
      error: Requested operation is not valid: domain is not running
      a54f25a9
  9. 18 1月, 2013 8 次提交
  10. 17 1月, 2013 1 次提交
  11. 16 1月, 2013 1 次提交
  12. 08 1月, 2013 1 次提交
  13. 21 12月, 2012 6 次提交
  14. 11 12月, 2012 1 次提交
    • L
      Add support for offline migration · 8b9bf787
      liguang 提交于
      Offline migration transfers inactive definition of a domain (which may
      or may not be active). After successful completion, the domain remains
      in its current state on source host and is defined but inactive on
      destination host. It's a bit more clever than virDomainGetXMLDesc() on
      source host followed by virDomainDefineXML() on destination host, as
      offline migration will run pre-migration hook to update the domain XML
      on destination host. Currently, copying non-shared storage is not
      supported during offline migration.
      
      Offline migration can be requested with a new migration flag called
      VIR_MIGRATE_OFFLINE (which has to be combined with
      VIR_MIGRATE_PERSIST_DEST flag).
      8b9bf787
  15. 07 12月, 2012 1 次提交
    • P
      virsh: Fix usage of header termios.h · 989a427d
      Peter Krempa 提交于
      The termios struct exported by the termios.h header is used as an
      argument for vshMakeStdinRaw(). The header isn't used anywhere in
      tools/virsh-domain.c.
      
      This patch adds the header to the header declaring vshMakeStdinRaw() and
      removes other places in virsh.
      989a427d
  16. 03 12月, 2012 2 次提交
  17. 01 12月, 2012 3 次提交
  18. 30 11月, 2012 1 次提交
    • J
      virsh: use correct sizeof when allocating cpumap · dc04b2a7
      Ján Tomko 提交于
      Found by coverity:
      Error: SIZEOF_MISMATCH (CWE-569):
          libvirt-0.10.2/tools/virsh-domain.c:4754: suspicious_sizeof: Passing
          argument "8UL /* sizeof (cpumap) */" to function
          "_vshCalloc(vshControl *, size_t, size_t, char const *, int)" and
          then casting the return value to "unsigned char *" is suspicious.
      
      Error: SIZEOF_MISMATCH (CWE-569):
          libvirt-0.10.2/tools/virsh-domain.c:4942: suspicious_sizeof: Passing
          argument "8UL /* sizeof (cpumap) */" to function
          "_vshCalloc(vshControl *, size_t, size_t, char const *, int)" and
          then casting the return value to "unsigned char *" is suspicious.
      dc04b2a7
  19. 29 11月, 2012 2 次提交
  20. 28 11月, 2012 1 次提交
    • M
      virsh: Rewrite cmdDomDisplay · 1d4f41fd
      Martin Kletzander 提交于
      Just a little rewrite of the cmdDomDisplay function to make it
      consistent and hopefully more readable.  This also fixes a problem
      with password not being displayed for vnc even with the
      "--include-password" option.
      1d4f41fd