1. 07 9月, 2019 1 次提交
  2. 17 6月, 2019 1 次提交
  3. 12 4月, 2019 1 次提交
  4. 10 4月, 2019 1 次提交
  5. 05 3月, 2019 2 次提交
  6. 14 2月, 2019 1 次提交
  7. 04 2月, 2019 2 次提交
  8. 03 1月, 2019 1 次提交
  9. 24 9月, 2018 1 次提交
  10. 17 5月, 2018 4 次提交
  11. 24 1月, 2018 1 次提交
  12. 04 11月, 2017 1 次提交
  13. 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
  14. 14 11月, 2016 1 次提交
  15. 08 9月, 2016 1 次提交
    • C
      virsh: Fix *-event error string · 18465411
      Christophe Fergeau 提交于
      When using
      virsh net-event non-existing-net
      the error message says that 'either --list or event type is required'
      This is misleading as 'virsh net-event $valid-event-type' is not going
      to work either. What is expected is 'virsh net-event --event
      $valid-event-type'
      
      This commit fixes the string in pool-event, nodedev-event, event, and
      net-event.
      18465411
  16. 24 8月, 2016 2 次提交
    • P
      virsh: avoid i18n puzzle · a144f284
      Pino Toscano 提交于
      Use the full versions of the message, instead of composing a base
      message with what was updated; the change makes the messages properly
      translatable, since different parts of a sentence might need different
      declensions for example.
      a144f284
    • P
      virsh: respect -q/--quiet more · b620bdee
      Pino Toscano 提交于
      Turn various vshPrint() informative messages into vshPrintExtra(), so
      they are not printed when requesting the quiet mode; neither XML/info
      outputs nor the results of commands are affected.
      Also change the expected outputs of the virsh-undefine test, since virsh
      is invoked in quiet mode there.
      
      Some informative messages might still be converted (and thus silenced
      when in quiet mode), but this is an improvements nonetheless.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1358179
      b620bdee
  17. 16 6月, 2016 1 次提交
  18. 08 6月, 2016 1 次提交
    • M
      virsh-network: Avoid possible NULL deref in cmdNetworkDHCPLeases · 5ec2b0cc
      Michal Privoznik 提交于
      Problem is, localtime_r() returns a pointer to converted time or
      NULL in case of an error. But checking the glibc sources, error
      will occur iff a NULL has been passed as an either of arguments
      the function takes. But GCC fails to see that:
      
      ../../tools/virsh-network.c: In function 'cmdNetworkDHCPLeases':
      ../../tools/virsh-network.c:1370:12: error: potential null pointer dereference [-Werror=null-dereference]
               ts = *localtime_r(&expirytime_tmp, &ts);
               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      5ec2b0cc
  19. 22 2月, 2016 1 次提交
  20. 12 1月, 2016 5 次提交
    • J
      virsh: Create macro for common "network" option · 21655228
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically.  Note that not all
      '{.name = "network",' entries are replaced, just those that have the
      common .help string of "network name or uuid".
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      21655228
    • J
      virsh: Create macro for common "file" option · febf69b5
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr for the less common help string for each
      command option.  Note that only file options using "OT_DATA" and
      "OFLAG_REQ" will be replace - others are left as is.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      febf69b5
    • J
      virsh: Create macro for common "current" option · 5b42dbed
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr which for many options in virsh-domain.c
      is simply "affect current domain". So, create a second macro within that
      file in order to define the more common use as a revector to the
      common macro with the common _helpstr.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      5b42dbed
    • J
      virsh: Create macro for common "live" option · 8e4108f0
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr which for many options in virsh-domain.c
      is simply "affect running domain". So, create a second macro within that
      file in order to define the more common use as a revector to the
      common macro with the common _helpstr.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      8e4108f0
    • J
      virsh: Create macro for common "config" option · 0dbac60b
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr which for many options in virsh-domain.c
      is simply "affect next boot". So, create a second macro within that
      file in order to define the more common use as a revector to the
      common macro with the common _helpstr.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      0dbac60b
  21. 11 1月, 2016 1 次提交
    • A
      virsh: Add timestamps to network events · dd4e9351
      Andrea Bolognani 提交于
      Implement a --timestamp option for 'virsh net-event', similar to the
      one for 'virsh event'.
      
      When the option is used, the human-readable timestamp will be printed
      before the message.
      dd4e9351
  22. 03 12月, 2015 1 次提交
  23. 14 8月, 2015 1 次提交
    • E
      tools: Introduce new client generic module vsh · 834c5720
      Erik Skultety 提交于
      In order to share as much virsh' logic as possible with upcomming
      virt-admin client we need to split virsh logic into virsh specific and
      client generic features.
      
      Since majority of virsh methods should be generic enough to be used by
      other clients, it's much easier to rename virsh specific data to virshX
      than doing this vice versa. It moved generic virsh commands (including info
      and opts structures) to generic module vsh.c.
      
      Besides renaming methods and structures, this patch also involves introduction
      of a client specific control structure being referenced as private data in the
      original control structure, introduction of a new global vsh Initializer,
      which currently doesn't do much, but there is a potential for added
      functionality in the future.
      Lastly it introduced client hooks which are especially necessary during
      client connecting phase.
      834c5720
  24. 12 6月, 2015 2 次提交
  25. 02 6月, 2015 2 次提交
  26. 18 5月, 2015 1 次提交
  27. 15 4月, 2015 1 次提交
    • E
      virsh: fix regression in 'virsh event' by domain · 31ef0836
      Eric Blake 提交于
      Commit a0670aef caused a regression in 'virsh event' and
      'virsh qemu-monitor-event' - if a user tries to filter the
      command to a specific domain, an error message is printed:
      
      $ virsh event dom --loop
      error: internal error: virsh qemu-monitor-event: no domain VSH_OT_DATA option
      
      and then the command continues as though no domain had been
      supplied (giving events for ALL domains, instead of the
      requested one).  This is because the code was incorrectly
      assuming that all "domain" options would be supplied via a
      mandatory VSH_OT_DATA, even though "domain" is optional for
      these two commands, so we had changed them to VSH_OT_STRING
      to quit failing for other reasons (ever since it was decided
      that VSH_OT_DATA and VSH_OT_STRING should no longer be
      synonyms).
      
      In looking at the situation, though, the code for looking up
      a domain was making a pointless check for whether the option
      exists prior to finding the option's string value, as
      vshCommandOptStringReq does just fine at reporting any errors
      when looking up a string whether or not the option was present.
      
      So this is a case of regression fixing by pure code deletion :)
      
      * tools/virsh-domain.c (vshCommandOptDomainBy): Drop useless filter.
      * tools/virsh-interface.c (vshCommandOptInterfaceBy): Likewise.
      * tools/virsh-network.c (vshCommandOptNetworkBy): Likewise.
      * tools/virsh-nwfilter.c (vshCommandOptNWFilterBy): Likewise.
      * tools/virsh-secret.c (vshCommandOptSecret): Likewise.
      * tools/virsh.h (vshCmdHasOption): Drop unused function.
      * tools/virsh.c (vshCmdHasOption): Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      31ef0836
  28. 02 4月, 2015 1 次提交