1. 30 6月, 2010 1 次提交
    • E
      virsh: tweak help output for VSH_OT_DATA · 26752f3b
      Eric Blake 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=609044 complained
      that 'virsh help pool-create-as' didn't document the shortcut
      that you can do 'virsh pool-create-as $name $type --target $target'
      rather than having to supply the four optional source- arguments
      in order to fill out the necessary positional arguments.
      
      This one-liner changes the help output to hopefully make this more obvious:
      
        NAME
          pool-create-as - create a pool from a set of args
      
        SYNOPSIS
          pool-create-as <name> [--print-xml] <type> [<source-host>] [<source-path>] [<source-dev>] [<source-name>] [<target>] [--source-format <string>]
      
        DESCRIPTION
          Create a pool.
      
        OPTIONS
          [--name] <string>  name of the pool
          --print-xml      print XML document, but don't define/create
          [--type] <string>  type of the pool
          [--source-host] <string>  source-host for underlying storage
          [--source-path] <string>  source path for underlying storage
          [--source-dev] <string>  source device for underlying storage
          [--source-name] <string>  source name for underlying storage
          [--target] <string>  target for underlying storage
          --source-format <string>  format for underlying storage
      
      * tools/virsh.c (vshCmddefHelp): Make it more obvious that data
      arguments may, but not must, be specified by option leaders.
      26752f3b
  2. 29 6月, 2010 1 次提交
  3. 23 6月, 2010 1 次提交
    • E
      virsh: document attach-disk better · 4cc2b6d6
      Eric Blake 提交于
      http://bugzilla.redhat.com/601143, part 1 - document existing
      behavior.  Ever since Mar 2010 (commit ced154cb), the use of
      'attach-disk' or 'attach-device' to change cdrom/floppy media has been
      documented but deprecated, but the replacement to use 'update-device'
      was not documented.
      
      * tools/virsh.c (cmdAttachInterface, cmdAttachDisk): Fix bad error
      message.
      * tools/virsh.pod (attach-device, attach-disk): Refer to
      update-device for cdrom and floppy behavior.
      (update-device): Add documentation.
      4cc2b6d6
  4. 21 6月, 2010 1 次提交
  5. 18 6月, 2010 2 次提交
  6. 17 6月, 2010 3 次提交
  7. 16 6月, 2010 1 次提交
  8. 15 6月, 2010 1 次提交
    • E
      virsh: add start --paused support · cbe6ebdb
      Eric Blake 提交于
      Make 'start --paused' mirror 'create --paused'.
      
      * tools/virsh.c (cmdStart): Use new virDomainCreateWithFlags API
      when needed.
      * tools/virsh.pod (start): Document --paused.
      cbe6ebdb
  9. 11 6月, 2010 1 次提交
    • J
      virsh: add snapshot backing store support to vol-create-as · b28a068b
      Justin Clift 提交于
      This patch adds two new parameters to the vol-create-as command:
      
       --backing-vol <volume-name-or-key-or-path>
       --backing-vol-format <format-of-backing-vol>
      
        virsh # vol-create-as guest_images_lvm snapvol1 5G --backing-vol \
                    rhel6vm1lun1
        Vol snapvol1 created
      
        virsh # vol-create-as image_dir qcow2snap2 5G --format qcow2 \
                    --backing-vol imagevol1.qcow2 \
                    --backing-vol-format qcow2
        Vol qcow2snap2 created
      
      Additionally, the virsh man page update fixes incorrect snapshot
      parameters that were included in my prior bulk volume command patch.
      b28a068b
  10. 09 6月, 2010 5 次提交
  11. 08 6月, 2010 1 次提交
  12. 02 6月, 2010 3 次提交
    • J
      Add --source-format argument to virsh pool-define-as and pool-create-as · 3db47cb5
      Justin Clift 提交于
      This is the corresponding patch for the virsh man page (virsh.pod).
      3db47cb5
    • J
      Add --source-format argument to virsh pool-define-as and pool-create-as · b221973a
      Justin Clift 提交于
      When creating pools from dedicated disks, the existing pool-define-as
      and pool-create-as commands are a bit non-optimal.
      
      Ideally, a person would be able to specify all of the required options
      directly on the command line instead of having to edit the XML.
      
      At the moment, there is no way to specify the format type (ie gpt) so it
      gets included in the XML the pool is constructed with.
      
      Please find attached a simple (tested) patch to add an optional
      "--source-format 'type'" to virsh.  This is patched against current git
      master and will apply cleanly.
      
      Also created a Red Hat BZ ticket for this (#597790) for tracking.
      b221973a
    • J
      Trivial virsh.pod additions --all for "list" command and similar · e5f31f46
      Justin Clift 提交于
      This is just a trivial patch to virsh.pod (from git master). It adds the
      following pieces to the virsh man page:
      
        + Shows the --inactive and --all optional parameters for the list
          command.
      
          Closes Bugzilla #575512, reported by Renich Bon Ciric
          https://bugzilla.redhat.com/show_bug.cgi?id=575512
      
        + Corrects the existing description of the list command, to now say
          that only running domains are listed if no domains are specified.
      
          The man page up until this point has said all domains are listed if
          no domains are specified, which is incorrect.
      
        + Adds the "shut off" state to the list of states for the list
          command.
      
        + Adds a missing =back around line 755, that pod2man was complaining
          was missing.
      e5f31f46
  13. 18 5月, 2010 1 次提交
  14. 17 5月, 2010 1 次提交
    • E
      build: fix up some compiler flags · 6e5b5bbc
      Eric Blake 提交于
      Matthias noted that the line:
      virt_aa_helper_LDFLAGS = $(WARN_CFLAGS)
      looks inconsistent, so I did an audit.
      
      Currently, the set of compiler warning flags passed to gcc as $CC are
      equally permitted as the set of linker flags passed to gcc as $LD, so
      there was no problem with that usage.  But if we ever get in a
      situation where $CC and $LD treat particular flags differently, using
      the right variable form will make it easier.
      
      In the process, I spotted a couple of typos that were omitting useful
      flags, as well as specifying a -l under the wrong variable.
      
      * acinclude.m4 (LIBVIRT_COMPILE_WARNINGS): Define WARN_LDFLAGS as
      an alias for WARN_CFLAGS.
      * tools/Makefile.am (virsh_LDFLAGS): Use more canonical spelling.
      * proxy/Makefile.am (libvirt_proxy_LDFLAGS): Likewise. Move
      library...
      (libvirt_proxy_LDADD): ...here.
      * src/Makefile.am (virt_aa_helper_LDFLAGS): Use more canonical
      spelling of WARN_LDFLAGS.
      (libvirt_parthelper_LDFLAGS, libvirt_lxc_LDFLAGS): Likewise.  Use
      correct spelling of COVERAGE_LDFLAGS.
      Reported by Matthias Bolte.
      6e5b5bbc
  15. 12 5月, 2010 1 次提交
    • E
      build: update gnulib · e8a1a730
      Eric Blake 提交于
      * .gnulib: Update to latest.
      * bootstrap.conf (gnulib_modules): Import netdb.
      * src/esx/esx_util.c (AI_ADDRCONFIG): Rely on gnulib.
      * src/remote/remote_driver.c (AI_ADDRCONFIG): Likewise.
      * tools/virsh.c (WEXITSTATUS, O_SYNC): Likewise.
      e8a1a730
  16. 11 5月, 2010 2 次提交
  17. 05 5月, 2010 1 次提交
    • K
      qemu: live migration with non-shared storage for kvm · b0a3f8b6
      Kenneth Nagin 提交于
      Support for live migration between hosts that do not share storage was
      added to qemu-kvm release 0.12.1.
      It supports two flags:
      -b migration without shared storage with full disk copy
      -i migration without shared storage with incremental copy (same base image
      shared between source and destination).
      
      I tested the live migration without shared storage (both flags) for native
      and p2p with and without tunnelling.  I also verified that the fix doesn't
      affect normal migration with shared storage.
      b0a3f8b6
  18. 04 5月, 2010 1 次提交
    • E
      build: prefer WIN32 over __MINGW32__ checks · 9f87b631
      Eric Blake 提交于
      WIN32 is always defined when __MINGW32__ is defined, but the
      converse is not true.  WIN32 is more generic, if someone were
      to ever attempt porting to a microsoft compiler.  This does
      not affect Cygwin, which intentionally does not define WIN32.
      
      * src/qemu/qemu_driver.c (qemuDomainGetBlockInfo): Use more
      generic flag macro.
      * src/storage/storage_backend.c
      (virStorageBackendUpdateVolTargetInfoFD)
      (virStorageBackendRunProgRegex): Likewise.
      * tools/console.h (vshRunConsole): Likewise.
      9f87b631
  19. 03 5月, 2010 1 次提交
    • L
      Fix memory leaks in cmdInterfaceEdit and cmdNWFilterEdit. · 2b50cae5
      Laine Stump 提交于
      This applies a fix to thos functions similar to that made to cmdEdit
      in 27089506, thus fnixing a memory
      leak - if tmp is unlinked and NULLed early in the function, the memory
      used by tmp is never freed. Since we will always unlink tmp prior to
      freeing its memory at the end of the function, just remove the earlier
      code and let cleanup: do the cleanup.
      2b50cae5
  20. 30 4月, 2010 2 次提交
    • D
      Fix virt-pki-validate's determination of CN · c179a0f6
      Dustin Kirkland 提交于
      Ubuntu's gntls package generates an Issuer line that looks like this:
              Issuer: C=US,ST=NY,L=Rochester,O=example.com,CN=example.com CA,EMAIL=hostmaster@example.com
      
      While Red Hat's looks like this
      Issuer: CN=Red Hat Emerging Technologies
      
      Note the leading whitespace, and the additional fields in the former.
      
      This patch updates the regular expression to:
       * trim leading characters before "Issuer:"
       * trim anything between Issuer: and CN=
       * trim anything after the next ,
      
      I've tested this against the certool output of both RH and Ubuntu
      generated certs.
      Signed-off-by: NDustin Kirkland <kirkland@canonical.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      c179a0f6
    • D
      Add new domblkinfo command to virsh · 7703c2c9
      Daniel P. Berrange 提交于
        virsh # domblkinfo demoguest /dev/hda2
        Capacity:       1048576000
        Allocation:     104857600
        Physical:       104857600
      
      * tools/virsh.c: Implement domblkinfo command mapping to the
        new virDomainGetBlockInfo API
      7703c2c9
  21. 29 4月, 2010 1 次提交
    • C
      Fix a virsh edit memory leak · 27089506
      Chris Lalancette 提交于
      When running virsh edit, we are unlinking and setting
      the tmp variable to NULL before going to the end of the
      function, meaning that we never free tmp.  Since the
      exit to the function will always unlink and free tmp,
      just remove this bit of code and let it get done at the
      end.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      27089506
  22. 24 4月, 2010 1 次提交
  23. 22 4月, 2010 2 次提交
  24. 14 4月, 2010 1 次提交
  25. 13 4月, 2010 1 次提交
  26. 12 4月, 2010 2 次提交
  27. 08 4月, 2010 1 次提交