1. 18 11月, 2017 1 次提交
  2. 16 11月, 2017 1 次提交
    • J
      virsh: fixing wrong datatype of 'set-lifcycle-action' command options. · c7543a72
      Julio Faracco 提交于
      The 'set-lifcycle-action' is throwing a weird error after executing it with
      the '--help' option. The command output is showing the options 'type' and
      'action' are as optional, but they aren't. Both are required.
      
      virsh # set-lifecycle-action --help
      ...
        SYNOPSIS
          set-lifecycle-action <domain> [--type <string>] [--action <string>] ...
      ...
        OPTIONS
          [--domain] <string>  domain name, id or uuid
      error: internal error: bad options in command: 'set-lifecycle-action'
      
      After applying this patch, both arguments are required now.
      
      virsh # set-lifecycle-action --help
      ...
        SYNOPSIS
          set-lifecycle-action <domain> <type> <action> [--config] ...
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1509870Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
      c7543a72
  3. 04 11月, 2017 1 次提交
  4. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  5. 24 10月, 2017 1 次提交
    • P
      virsh: domain: Fix option handling in domxml-to-native · f4973d1e
      Peter Krempa 提交于
      Commit fdeac7a0 tried to fix the output
      of 'virsh domxml-to-native --help' by switching types around. One of the
      changes broke the option parser. VSH_OT_ARGV should be used only for
      variable argument count, not to make the help generator look pretty.
      
      The correct option type in this case is VSH_OT_STRING as it's not
      mandatory now since it can be substituted by using --domain.
      
      This makes --help for this command look incorrect, but the parser works
      as it should.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1494400
      f4973d1e
  6. 19 10月, 2017 1 次提交
  7. 12 10月, 2017 1 次提交
  8. 11 9月, 2017 1 次提交
  9. 29 8月, 2017 3 次提交
  10. 26 8月, 2017 1 次提交
  11. 14 8月, 2017 1 次提交
  12. 02 8月, 2017 2 次提交
  13. 10 7月, 2017 2 次提交
    • S
      Use unsigned timeout in cmdMigrateSetMaxDowntime · 7432141c
      Scott Garfinkle 提交于
      While looking to implement a migrate-getmaxdowntime command (coming),
      I noticed that the setmaxdowntime is incorrectly looking at its
      parameter as a signed longlong. Not sure how that got past gcc, but
      here's a simple patch to make the command line parsing and the parameter to
      the worker functions all have the correct (unsigned) type.
      Signed-off-by: NScott Garfinkle <seg@us.ibm.com>
      7432141c
    • J
      tools: virsh: domdisplay command is not freeing the domain pointer · f50ba8e4
      Julio Faracco 提交于
      The command 'domdisplay' is not freeing the domain pointer properly in
      cleanup section. See the error below:
      
      virsh # domdisplay WINDOWS7
      vnc://127.0.0.1:0
      
      virsh # quit
      
      error: One or more references were leaked after disconnect from the hypervisor
      
      Valgrind report:
      
      ==29168== 66 (56 direct, 10 indirect) bytes in 1 blocks are definitely lost in loss record 154 of 239
      ==29168==    at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==29168==    by 0x5505324: virAllocVar (viralloc.c:560)
      ==29168==    by 0x555A61B: virObjectNew (virobject.c:199)
      ==29168==    by 0x561F367: virGetDomain (datatypes.c:284)
      ==29168==    by 0x5680979: get_nonnull_domain (remote_driver.c:8143)
      ==29168==    by 0x5680979: remoteDomainLookupByName (remote_client_bodies.h:3047)
      ==29168==    by 0x5623D9A: virDomainLookupByName (libvirt-domain.c:425)
      ==29168==    by 0x160480: virshLookupDomainInternal (virsh-util.c:59)
      ==29168==    by 0x160547: virshCommandOptDomainBy (virsh-util.c:98)
      ==29168==    by 0x13D3A9: cmdDomDisplay (virsh-domain.c:10963)
      ==29168==    by 0x165680: vshCommandRun (vsh.c:1327)
      ==29168==    by 0x12E320: main (virsh.c:953)
      Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
      f50ba8e4
  14. 28 6月, 2017 1 次提交
  15. 24 6月, 2017 1 次提交
  16. 13 6月, 2017 1 次提交
  17. 07 6月, 2017 1 次提交
  18. 26 5月, 2017 1 次提交
  19. 18 5月, 2017 1 次提交
    • G
      virsh: add --io when attaching disks to guests · ca21d75d
      Gordon Messmer 提交于
      virt-install and virt-manager both default to explicitly setting
      "io='native'" in the disk "driver" tag. virsh, however, does not and also
      does not provide an option to specify that setting at all.  As a result,
      disks use a different IO mechanism (the default, "threads") when attached
      post-setup using virsh.  Adding this option allows users to keep disk
      performance consistent for disks attached at install, and those attached
      afterward.
      ca21d75d
  20. 27 4月, 2017 1 次提交
  21. 12 4月, 2017 6 次提交
  22. 27 3月, 2017 3 次提交
  23. 25 3月, 2017 1 次提交
  24. 21 2月, 2017 1 次提交
  25. 30 1月, 2017 2 次提交
  26. 10 1月, 2017 1 次提交
    • N
      virsh: Display perf enabled/disabled message for set operations · 0289b8b2
      Nitesh Konkar 提交于
      When setting perf events, the enabled/disabled perf events are not
      listed. Since we know which events were changed it's possible to
      print out the values on successful set, such as :
      
          virsh perf Domain --enable instructions --disable cache_misses
          instructions   : enabled
          cache_misses   : disabled
      
      Created a helper to print the messages - use the vshPrintExtra to
      adhere to the --quiet|-q option being set by some script. This will
      cause the get code to print nothing, but will return success/failure.
      Signed-off-by: NNitesh Konkar <nitkon12@linux.vnet.ibm.com>
      0289b8b2
  27. 09 1月, 2017 1 次提交
  28. 06 12月, 2016 1 次提交