1. 21 3月, 2013 15 次提交
    • P
      virsh-host: Refactor cmdFreecell · ccb69210
      Peter Krempa 提交于
      Use the new helpers to determine mutually exclusive options and touch up
      some parts to simplify the code.
      ccb69210
    • P
      virsh-snapshot: Refactor virsh snapshot-list · 55b3b15c
      Peter Krempa 提交于
      Simplify error handling and mutually exclusive option checking.
      55b3b15c
    • P
      virsh: Introduce macros to reject mutually exclusive arguments · 7e437ee7
      Peter Krempa 提交于
      This patch adds three macros to the virsh source tree that help to
      easily check for mutually exclusive parameters.
      
      VSH_EXCLUSIVE_OPTIONS_EXPR has four arguments, two expressions to check
      and two names of the parameters to print in the message.
      
      VSH_EXCLUSIVE_OPTIONS is more specific and check the command structure
      for the parameters using vshCommandOptBool.
      
      VSH_EXCLUSIVE_OPTIONS_VAR is meant to check boolean variables with the
      same name as the parameters.
      7e437ee7
    • P
      python: Fix emulatorpin API bindings · d395c811
      Peter Krempa 提交于
      The addition of emulator pinning APIs didn't think of doing the right
      job with python APIs for them. The default generator produced unusable
      code for this.
      
      This patch switches to proper code as in the case of domain Vcpu pining.
      This change can be classified as a python API-breaker but in the state
      the code was before I doubt anyone was able to use it successfully.
      d395c811
    • P
      qemu: Un-mark volume as mirrored/copied if blockjob copy fails · a584eaa5
      Peter Krempa 提交于
      When the blockjob fails for some reason an event is emitted but the disk
      wasn't unmarked as being part of a active block copy operation.
      a584eaa5
    • D
      Fix initialization of virIdentityPtr thread locals · 6e5ad189
      Daniel P. Berrange 提交于
      Some code mistakenly called virIdentityOnceInit directly
      instead of virIdentityInitialize(). This meant that one-time
      initializer was run many times with predictably bad results.
      6e5ad189
    • M
      qemu: s/VIR_ERR_NO_SUPPORT/VIR_ERR_OPERATION_UNSUPPORTED · cb86e9d3
      Michal Privoznik 提交于
      The VIR_ERR_NO_SUPPORT error code is reserved for cases where an
      API is not implemented in a driver. It definitely should not be
      used when an API execution fails due to unsupported operation.
      cb86e9d3
    • D
      Fix linkage of virt-aa-helper with numa library · e053561e
      Daniel P. Berrange 提交于
      The recent commit moved some of the use of libnuma out of the
      driver code, and into src/util/. It did not, however, update
      libvirt_util.la to link against libnuma. This caused linkage
      failure with virt-aa-helper, since nothing else caused libnuma
      to be pulled onto the linker command line.
      
      The fix removes all reference to NUMACTL_LIBS/CFLAGS from the
      various modules in src/Makefile.am and just adds them to the
      libvirt_util.la module, which everything else depends on.
      
      Technically a build-breaker fix, but wanted to wait for feedback
      on this
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      e053561e
    • O
      qemu: Add the new disk src into shared disk table when updating disk · 65f61e45
      Osier Yang 提交于
      We should record the new disk src in the shared disk table for
      updating disk (CD-ROM or Floppy) API. Fortunately, we only allow
      to update the disk source now, otherwise we might also want to
      set the unpriv_sgio setting.
      65f61e45
    • G
      python: fix bindings that don't raise an exception · 4b143ab2
      Guannan Ren 提交于
      For example:
       >>> dom.memoryStats()
       libvir: QEMU Driver error : Requested operation is not valid:\
               domain is not running
      
      There are six such python API functions like so.
      The root reason is that generator.py script checks the type of return
      value of a python stub function defined in libvirt-api.xml or
      libvirt-override-api.xml to see whether to add the raise clause or not
      in python wrapper code in libvirt.py.
      
      The type of return value is supposed to be C types.
      For those stub functions which return python non-integer data type like
      string, list, tuple, dictionary, the existing type in functions varies
      from each other which leads problem like this.
      
      Currently, in generator.py, it maintains a buggy whitelist for stub functions
      returning a list type. I think it is easy to forget adding new function name
      in the whitelist.
      
      This patch makes the value of type consistent with C type "char *"
      in libvirt-override-api.xml. For python, any of types could be printed
      as string, so I choose "char *" in this case. And the comment in xml
      could explain it when adding new function definition.
      
            <function name='virNodeGetCPUStats' file='python'>
              ...
       -      <return type='virNodeCPUStats' info='...'/>
       +      <return type='char *' info='...'/>
              ...
            </function>
      4b143ab2
    • P
      domain: add support for iscsi network disks · 1d948912
      Paolo Bonzini 提交于
      This plumbs in the XML description of iSCSI shares.  The next patches
      will add support for the libiscsi userspace initiator.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      1d948912
    • L
      Clean redundant code about VCPU string checking · a67aebd6
      Li Zhang 提交于
      Now that VCPU number are removed from qemu_monitor_text.c
      (commit cc78d7ba), VCPU string checking also should be removed.
      Report-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NLi Zhang <zhlcindy@linux.vnet.ibm.com>
      a67aebd6
    • G
      cgroup: export virCgroupRemoveRecursively · 8d19a9f5
      Gao feng 提交于
      We will use virCgroupRemoveRecursively to remove cgroup
      directories in the coming patch.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      8d19a9f5
    • G
      Don't fail if SELinux is diabled · 82eec793
      Guido Günther 提交于
      but libvirt is built with --with-selinux. In this case getpeercon
      returns ENOPROTOOPT so don't return an error in that case but simply
      don't set seccon.
      82eec793
    • G
      clarify virsh net commands · 2e1cd890
      Gene Czarcinski 提交于
      Clarify that net-create deals with a transient virtual
      network whereas net-define defines a persistent virtual
      network definition and will create the network (xml)
      definition file.
      
      Clarify that net-destroy works with both transient and
      persistent virtual networks.
      Signed-off-by: NGene Czarcinski <gene@czarc.net>
      2e1cd890
  2. 20 3月, 2013 16 次提交
  3. 19 3月, 2013 9 次提交