1. 06 6月, 2013 5 次提交
    • J
      Replace two-state local integers with bool · e557766c
      Ján Tomko 提交于
      Found with 'git grep "= 1"'.
      e557766c
    • P
      storage: Avoid unnecessary ternary operators and refactor the code · b0c3ee0c
      Peter Krempa 提交于
      Setting of local variables in virStorageBackendCreateQemuImgCmd was
      unnecessarily cluttered with ternary operators and repeated testing of
      of conditions.
      
      This patch refactors the function to use if statements and improves
      error reporting in case inputvol is specified but does not contain
      target path. Previously we would complain about "unknown storage vol
      type 0" instead of the actual problem.
      b0c3ee0c
    • A
      openvz: Fix code coverage issue in OpenVZ driver · 5d39a491
      Alvaro Polo 提交于
      After fixing an invalid usage of virDomainNetDef in OpenVZ driver,
      a coverage issue appeared. This was caused by a still invalid usage
      of net->data.ethernet.dev for non ethernet networking.
      5d39a491
    • M
      qemu: Reformat listen address prior to checking · e5fa9db1
      Michal Privoznik 提交于
      Currently, a listen address for a SPICE server can be specified. Later,
      when the domain is migrated, we need to relocate the graphics which
      involves telling new destination to the SPICE server. However, we can't
      just assume the listen address is the new location, because the listen
      address can be ANYCAST (0.0.0.0 for IPv4, :: for IPv6). In which case,
      we want to pass the remote hostname. But there are some troubles with
      ANYCAST. In both IPv4 and IPv6 it has many ways for specifying such
      address. For instance, in IPv4: 0, 0.0, 0.0.0, 0.0.0.0.  The number of
      variations gets bigger in IPv6 world. Hence, in order to check for
      ANYCAST address sanely, we should take the provided listen address,
      parse it and format back in it's full form. Which is exactly what this
      patch does.
      e5fa9db1
    • E
      build: fix build without posix_fallocate · e90a3598
      Eric Blake 提交于
      Such as on FreeBSD.  Broken in commit aa2a4cff.
      
      * src/util/virstoragefile.c (virStorageFileResize): Add missing ';',
      mark conditionally unused variables.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      e90a3598
  2. 05 6月, 2013 12 次提交
  3. 04 6月, 2013 5 次提交
  4. 03 6月, 2013 15 次提交
  5. 01 6月, 2013 3 次提交
    • O
      conf: Generate address for scsi host device automatically · cdb97895
      Osier Yang 提交于
      With unknown good reasons, the attribute "bus" of scsi device
      address is always set to 0, same for attribute "target". (See
      virDomainDiskDefAssignAddress).
      
      Though we might need to change the algorithm to honor "bus"
      and "target" too, that's a different issue. The address generator
      for scsi host device in this patch just follows the unknown
      good reasons, only considering the "controller" and "unit".
      It walks through all scsi controllers and their units, to see
      if the address $controller:0:0:$unit can be used (if not used
      by any disk or scsi host device yet), if found one, it sits on
      it, otherwise, it creates a new controller (actually the controller
      is implicitly created by someone else), and sits on
      $new_controller:0:0:0 instead.
      cdb97895
    • L
      qemu: prevent termination of guests w/hostdev on driver reconnect · 2ea45647
      Laine Stump 提交于
      This should resolve:
      
        https://bugzilla.redhat.com/show_bug.cgi?id=959191
      
      The problem was that qemuUpdateActivePciHostdevs was returning 0
      (success) when no hostdevs were present, but would otherwise return -1
      (failure) even when it completed successfully. It is only called from
      qemuProcessReconnect(), and when qemuProcessReconnect got back an
      error, it would not only stop reconnecting, but would terminate the
      guest qemu process "to remove danger of it ending up running twice if
      user tries to start it again later".
      
      (This bug was introduced in commit 011cf7ad, which was pushed between
      v1.0.2 and v1.0.3, so all maintenance branches from v1.0.3 up to 1.0.5
      will need this one line patch applied.)
      2ea45647
    • G
      vbox: define DYNLIB_NAME for kFreeBSD · aeef20e9
      Guido Günther 提交于
      Similar to what Eric did for Cygwin it helps at least to compile
      without --without-vbox
      aeef20e9