1. 06 4月, 2010 3 次提交
  2. 05 4月, 2010 1 次提交
  3. 04 4月, 2010 1 次提交
  4. 03 4月, 2010 1 次提交
    • E
      build: import latest gnulib · e7168f79
      Eric Blake 提交于
      A lot of syntax check rules have to be rewritten, but the
      result is easier to maintain.  I tested each syntax rule
      by intentionally introducing a temporary violation of the rule.
      Additionally, some false positives for unmarked_diagnostics
      crept in, and an improved copyright_format test caught some bugs.
      
      * .gnulib: Update to latest.
      * cfg.mk (sc_prohibit_test_minus_ao): Delete, it was moved into
      gnulib's maint.mk.
      (sc_avoid_write, sc_prohibit_strcmp_and_strncmp)
      (sc_prohibit_asprintf, sc_prohibit_strncpy, sc_prohibit_readlink)
      (sc_prohibit_gethostname, sc_prohibit_gettext_noop)
      (sc_prohibit_VIR_ERR_NO_MEMORY, sc_prohibit_nonreentrant)
      (sc_prohibit_ctype_h, sc_TAB_in_indentation)
      (sc_avoid_ctype_macros)
      (sc_prohibit_virBufferAdd_with_string_literal)
      (sc_prohibit_gethostby, sc_copyright_format): Rewrite in terms of
      new maint.mk macros.
      (sc_libvirt_unmarked_diagnostics): Fix whitespace.
      * .x-sc_unmarked_diagnostics: New file.
      * tests/object-locking.ml: Fix copyright.
      * tools/virt-pki-validate.in: Likewise.
      * tools/virt-xml-validate.in: Likewise.
      e7168f79
  5. 01 4月, 2010 2 次提交
    • D
      Keep build quiet for generated file · f983c326
      Daniel P. Berrange 提交于
      Adds $(AM_V_GEN) to many more manual makefile.am rules that
      were generating files
      f983c326
    • E
      build: more fallout from test -a · a792bf24
      Eric Blake 提交于
      * cfg.mk (sc_prohibit_test_minus_ao): Also check for [.
      * docs/Makefile.am (%.html, html/index.html): Avoid non-portable
      test usage.
      * libvirt.spec.in (%post): Likewise.
      * tools/virt-pki-validate.in (servercert.pem): Likewise.
      * configure.ac (LOGNAME): Use test, not [, in files processed by
      autoconf.
      Detected by Matthias Bolte.
      a792bf24
  6. 31 3月, 2010 1 次提交
    • E
      virsh: add 'exit' as an alias for 'quit' · 890af4ca
      Eric Blake 提交于
      Call me lazy: some shells use exit (e.g. sh), others use quit (e.g. ftp),
      but I never remember which.  So it's faster to write a patch to make
      virsh take both than it is to take a 50-50 guess, and get it wrong
      in half of my attempts.
      
      * tools/virsh.c (commands): Add 'exit'.
      * tools/virsh.pod: Document it.
      890af4ca
  7. 30 3月, 2010 2 次提交
    • E
      virsh: support VISUAL, and allow metacharacters in EDITOR · f3661756
      Eric Blake 提交于
      Common Unix practice is to prefer VISUAL over EDITOR, particularly if
      the editor of choice spawns a new window.  Thus, it is also common to
      see settings like EDITOR='emacs -nw', with the expectation that the
      shell will parse this as an argument to 'emacs' and not try to invoke
      a file containing a space.
      
      If a user puts junk in EDITOR, they deserve what they get (much more
      than virsh will misbehave); furthermore, sudo scrubs EDITOR by
      default.  So the blind use of metacharacters in EDITOR should not be
      considered too much of a security issue.
      
      * tools/virsh.c (editFile): Prefer VISUAL over EDITOR.  Don't
      reject shell metacharacters in EDITOR.
      * tools/virsh.pod (edit, net-edit, ENVIRONMENT): Document VISUAL.
      Fixes https://bugzilla.redhat.com/show_bug.cgi?id=487738.
      f3661756
    • E
      virsh: improve man page · b522264b
      Eric Blake 提交于
      * tools/virsh.pod: (DESCRIPTION): Improve grammar.  Mention other drivers.
      (ENVIRONMENT): Document EDITOR.
      (COPYRIGHT): Bump.
      b522264b
  8. 27 3月, 2010 2 次提交
  9. 26 3月, 2010 1 次提交
    • D
      Introduce a update-device command in virsh · ced154cb
      Daniel P. Berrange 提交于
      Support the new virDomainUpdateDeviceFlags API in virsh by adding
      a new 'update-device' command. In the future this should be augmented
      with an explicit 'change-disk' command for media change to make it
      end user discoverable, as attach-disk is.
      
      * tools/virsh.c: Add 'update-device' command
      ced154cb
  10. 20 3月, 2010 2 次提交
  11. 18 3月, 2010 1 次提交
    • E
      maint: make Red Hat copyright notices consistent · 0a336335
      Eric Blake 提交于
      Spell out 'Red Hat, Inc.':
       git grep -i 'Copyright.*Red Hat' | grep -v Inc
      
      Include (C) consistently:
       git grep -i 'Copyright [^(].*Red Hat'
      
      * src/lxc/lxc_container.c: Update copyright formatting.
      * src/node_device/node_device_udev.c: Likewise.
      * src/node_device/node_device_udev.h: Likewise.
      * src/xen/xend_internal.h: Likewise.
      * src/xen/xm_internal.c: Likewise.
      * src/xen/xm_internal.h: Likewise.
      * tests/xmconfigtest.c: Likewise.
      * tests/object-locking.ml: Likewise.
      * tools/virt-pki-validate.in: Likewise.
      * tools/virt-xml-validate.in: Likewise.
      0a336335
  12. 16 3月, 2010 1 次提交
  13. 12 3月, 2010 3 次提交
    • C
      Fix crash in virsh after bogus command · 3ebbc241
      Chris Lalancette 提交于
      If you ran virsh in interactive mode and ran a command
      that virsh could not parse, it would then SEGV
      on subsequent commands.  The problem is that we are
      freeing the vshCmd structure in the syntaxError label
      at the end of vshCommandParse, but forgetting to
      set ctl->cmd to NULL.  This means that on the next command,
      we would try to free the same structure again, leading
      to badness.
      
      * tools/virsh.c: Make sure to set ctl->cmd to NULL after
        freeing it in vshCommandParse()
      3ebbc241
    • C
      Fix virsh command 'cd' · be2a53e6
      Chris Lalancette 提交于
      * tools/virsh.c: cmdCd was returning a 0 on success and -1 on error,
        when the rest of the code expected a TRUE on success and a
        FALSE on error.
      be2a53e6
    • L
      Fix compiler warnings in virsh.c · 7fbc2e37
      Laine Stump 提交于
      No functional change. These all generated compiler warnings which, for
      some reason weren't converted to errors by
      --enable-compiler-warnings=error.
      
      * tools/virsh.c:
        - change return type from int to void on two functions that don't
          return a value.
        - remove unused variables/labels from two functions
        - eliminate non-literal format strings
        - typecast char* into xmlChar* when calling
        - xmlParseBalancedChunkMemory
      7fbc2e37
  14. 11 3月, 2010 1 次提交
    • D
      Make virsh reconnect when losing connection · 056623f3
      Daniel Veillard 提交于
      When the daemon libvirtd restarts, a connected virsh gets a SIGPIPE
      and dies. This change the behaviour to try to reconnect if the
      signal was received or command error indicated a connection or RPC
      failure. Note that the failing command is not restarted.
      
      * tools/virsh.c: catch SIGPIPE signals as well as connection related
        failures, add some automatic reconnection code and appropriate error
        messages.
      056623f3
  15. 10 3月, 2010 3 次提交
    • E
      build: consistently indent preprocessor directives · 36d8e7d8
      Eric Blake 提交于
      * global: patch created by running:
      for f in $(git ls-files '*.[ch]') ; do
          cppi $f > $f.t && mv $f.t $f
      done
      36d8e7d8
    • E
      virsh: use N_ rather than gettext_noop · 0c39adef
      Eric Blake 提交于
      With N_() in place, we can use it for a smaller file.
      
      * doc/api-extension/0008-Step-8-of-8-Add-virsh-support.patch:
      Replace all uses of gettext_noop with N_.
      * tools/virsh.c: Likewise, throughout the file.
      0c39adef
    • E
      virsh: fix existing N_ uses · f6876e10
      Eric Blake 提交于
      It is a bad idea to call gettext on an already-translated
      string.  In cases where a string must be translated separately
      from where it is exposed to xgettext, the gettext manual
      recommends the idiom of N_() wrapping gettext_noop for
      marking the string.
      
      * src/internal.h (N_): Fix definition to match gettext manual.
      * tools/virsh.c: (cmdHelp, cmdList, cmdDomstate, cmdDominfo)
      (cmdVcpuinfo, vshUsage): Replace incorrect use of N_ with _.
      (vshCmddefHelp): Likewise.  Mark C format strings appropriately.
      f6876e10
  16. 03 3月, 2010 3 次提交
    • E
      virsh: silence compiler warning · 2103d87c
      Eric Blake 提交于
      gcc warns:
      virsh.c:1879: warning: '0' flag ignored with '-' flag in gnu_printf format
      
      * tools/virsh.c (cmdDomjobinfo): Delete useless flag.
      2103d87c
    • D
      Support job cancellation in QEMU driver · 04c7abd9
      Daniel P. Berrange 提交于
      This supports cancellation of jobs for the QEMU driver against
      the virDomainMigrate, virDomainSave and virDomainCoreDump APIs.
      It is not yet supported for the virDomainRestore API, although
      it is desirable.
      
      * src/qemu/qemu_driver.c: Issue 'migrate_cancel' command if
        virDomainAbortJob is issued during a migration operation
      * tools/virsh.c: Add a domjobabort command
      04c7abd9
    • D
      Add QEMU driver support for job info on migration ops · 0d3eee7f
      Daniel P. Berrange 提交于
      Introduce support for  virDomainGetJobInfo in the QEMU driver. This
      allows for monitoring of any API that uses the 'info migrate' monitor
      command. ie virDomainMigrate, virDomainSave and virDomainCoreDump
      
      Unfortunately QEMU does not provide a way to monitor incoming migration
      so we can't wire up virDomainRestore yet.
      
      The virsh tool gets a new command 'domjobinfo' to query status
      
      * src/qemu/qemu_driver.c: Record virDomainJobInfo and start time
        in qemuDomainObjPrivatePtr objects. Add generic shared handler
        for calling 'info migrate' with all migration based APIs.
      * src/qemu/qemu_monitor_text.c: Fix parsing of 'info migration' reply
      * tools/virsh.c: add new 'domjobinfo' command to query progress
      0d3eee7f
  17. 01 3月, 2010 1 次提交
  18. 27 2月, 2010 1 次提交
  19. 26 2月, 2010 1 次提交
    • C
      virsh: Show errors reported by nonAPI functions · 48286963
      Cole Robinson 提交于
      Only API calls trigger the error callback, which is required for
      proper virsh error reporting. Since we use non API functions from
      util/, make sure we properly report these errors.
      
      Fixes lack of error message from 'virsh create idontexit.xml'
      48286963
  20. 25 2月, 2010 1 次提交
  21. 23 2月, 2010 1 次提交
  22. 21 2月, 2010 1 次提交
  23. 20 2月, 2010 1 次提交
  24. 19 2月, 2010 1 次提交
  25. 17 2月, 2010 2 次提交
    • J
      Adds a cpu-baseline command for virsh · 73b0b596
      Jiri Denemark 提交于
      * tools/virsh.c: add a command to compute a CPU baseline based on
        multiple CPU definitions in an XML chunk
      * tools/virsh.pod: add it to the man page
      73b0b596
    • J
      vshCommandParse: placate coverity · 7c5735dc
      Jim Meyering 提交于
      There is no real leak here, but Coverity-Prevent thinks there is.
      It does not see that while there are four ways to return from
      vshCommandGetToken with VSH_TK_END, none of them results in allocation
      of a result.
      * tools/virsh.c (vshCommandParse): Add a (currently) useless VIR_FREE,
      to ensure that we never leak when vshCommandGetToken returns VSH_TK_END.
      7c5735dc
  26. 09 2月, 2010 2 次提交
    • M
      Remove conn parameter from util functions · f972dc2d
      Matthias Bolte 提交于
      It was used for error reporting only.
      f972dc2d
    • J
      Modify virsh commands · 3b9027c4
      Jim Fehlig 提交于
      Change all virsh commands that invoke virDomain{Attach,Detach}Device()
      to use virDomain{Attach,Detach}DeviceFlags() instead.
      
      Add a "--persistent" flag to these virsh commands, allowing user to
      specify that the domain persisted config be modified as well.
      
      V2: Only invoke virDomain{Attach,Detach}DeviceFlags() if
      "--persistent" flag is specified.  Otherwise invoke
      virDomain{Attach,Detach}Device() to retain current behavior.
      3b9027c4