1. 09 7月, 2010 1 次提交
  2. 08 7月, 2010 2 次提交
  3. 07 7月, 2010 5 次提交
  4. 05 7月, 2010 1 次提交
  5. 03 7月, 2010 1 次提交
  6. 02 7月, 2010 3 次提交
  7. 30 6月, 2010 5 次提交
    • R
      cgroup: Fix compilation broken on MinGW due to dirent->d_type · 29da015a
      Ryota Ozaki 提交于
      As pointed out by Eric Blake, using dirent->d_type breaks
      compilation on MinGW. This patch addresses this by using
      '#if defined' as same as doing for virCgroupForDriver.
      29da015a
    • J
      html docs: add link to PHP bindings by Radek Hladik · 8919b4d4
      Justin Clift 提交于
      8919b4d4
    • 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
    • D
      Avoid invoking the qemu monitor destroy callback if the constructor fails · 8134d396
      Daniel P. Berrange 提交于
      Some, but not all, codepaths in the qemuMonitorOpen() method
      would trigger the destroy callback. The caller does not expect
      this to be invoked if construction fails, only during normal
      release of the monitor. This resulted in a possible double-unref
      of the virDomainObjPtr, because the caller explicitly unrefs
      the virDomainObjPtr  if qemuMonitorOpen() fails
      
      * src/qemu/qemu_monitor.c: Don't invoke destroy callback from
        qemuMonitorOpen() failure paths
      8134d396
    • R
      cgroup: Add missing errno == ENOENT check in virCgroupRemoveRecursively · adc796c8
      Ryota Ozaki 提交于
      ENOENT happens normally when a subsystem is enabled with any other
      subsystems and the directory of the target group has already removed
      in a prior loop. In that case, the function should just return without
      leaving an error message.
      
      NB this is the same behavior as before introducing virCgroupRemoveRecursively.
      adc796c8
  8. 29 6月, 2010 9 次提交
  9. 28 6月, 2010 4 次提交
    • L
      Selectively ignore domainSetSecurityAllLabel failure in domain restore · 06f81c63
      Laine Stump 提交于
      When the saved domain image is on an NFS share, at least some part of
      domainSetSecurityAllLabel will fail (for example, selinux labels can't
      be modified). To allow domain restore to still work in this case, just
      ignore the errors.
      06f81c63
    • L
      use virStorageFileIsSharedFS utility function in qemudDomainSaveFlag · f35a9fc1
      Laine Stump 提交于
      Previously, this function had it's own bit of code performing the same
      function. Since there's now an equivalent utility function, let's use it.
      f35a9fc1
    • L
      Enhance virStorageFileIsSharedFS · fb457c5c
      Laine Stump 提交于
      virStorageFileIsSharedFS would previously only work if the entire path
      in question was stat'able by the uid of the libvirtd process. This
      patch changes it to crawl backwards up the path retrying the statfs
      call until it gets to a partial path that *can* be stat'ed.
      
      This is necessary to use the function to learn the fstype for files
      stored as a different user (and readable only by that user) on a
      root-squashed remote filesystem.
      fb457c5c
    • L
      Set proper selinux label on image file during qemu domain restore · 590c9c9a
      Laine Stump 提交于
      Also restore the label to its original value after qemu is finished
      with the file.
      
      Prior to this patch, qemu domain restore did not function properly if
      selinux was set to enforce.
      590c9c9a
  10. 26 6月, 2010 2 次提交
  11. 25 6月, 2010 7 次提交
    • D
      Don't squash file permissions when migration fails · 6d974315
      Daniel P. Berrange 提交于
      If an active migration operation fails, or is cancelled by the
      admin, the QEMU on the destination is shutdown and the one on
      the source continues running. It is important in shutting down
      the QEMU on the destination, the security drivers don't reset
      the file labelling/permissions.
      
      * src/qemu/qemu_driver.c: Don't reset labelling/permissions
        on migration abort
      6d974315
    • E
      phyp: optimize use of sed · 17dedf7c
      Eric Blake 提交于
      Minor speedups by using the full power of sed.
      
      * src/phyp/phyp_driver.c (phypGetVIOSFreeSCSIAdapter)
      (phypDiskType, phypListDefinedDomains): Use fewer processes, by
      folding other work into sed.
      (phypGetVIOSPartitionID): Likewise.  Also avoid non-portable use
      of 'sed -s'.
      17dedf7c
    • E
      phyp: add storage management driver · ebc46fea
      Eduardo Otubo 提交于
      Add the storage management driver to the Power Hypervisor driver.
      This is a big but simple patch, it's just a new set of functions.
      
      This patch includes:
       * Storage driver: The set of pool-* and vol-* functions.
       * attach-disk function.
       * Support for IVM on the new functions.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      ebc46fea
    • E
      phyp: add rudimentary storage driver · a4a28724
      Eduardo Otubo 提交于
      * src/phyp/phyp_driver.c (phypStorageDriver): New driver.
      (phypStorageOpen, phypStorageClose): New functions.
      (phypRegister): Register it.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      a4a28724
    • E
      phyp: reduce scope of driver functions · 89144534
      Eric Blake 提交于
      Several phyp functions are not namespace clean, and had no reason
      to be exported since no one outside the phyp driver needed to use
      them.  Rather than do lots of forward declarations, I was able
      to topologically sort the file.  So, this patch looks huge, but
      is really just a matter of marking things static and dealing with
      the compiler fallout.
      
      * src/phyp/phyp_driver.h (PHYP_DRIVER_H): Add include guard.
      (phypCheckSPFreeSapce): Delete unused declaration.
      (phypGetSystemType, phypGetVIOSPartitionID, phypCapsInit)
      (phypBuildLpar, phypUUIDTable_WriteFile, phypUUIDTable_ReadFile)
      (phypUUIDTable_AddLpar, phypUUIDTable_RemLpar, phypUUIDTable_Pull)
      (phypUUIDTable_Push, phypUUIDTable_Init, phypUUIDTable_Free)
      (escape_specialcharacters, waitsocket, phypGetLparUUID)
      (phypGetLparMem, phypGetLparCPU, phypGetLparCPUGeneric)
      (phypGetRemoteSlot, phypGetBackingDevice, phypDiskType)
      (openSSHSession): Move declarations to phyp_driver.c and make static.
      * src/phyp/phyp_driver.c: Rearrange file contents to provide
      topological sorting of newly-static funtions (no semantic changes
      other than reduced scope).
      (phypGetBackingDevice, phypDiskType): Mark unused, for now.
      89144534
    • E
      maint: add gnulib gettimeofday module · f9a92146
      Eric Blake 提交于
      * bootstrap.conf (gnulib_modules): Add gettimeofday.
      f9a92146
    • D
      Fix test case failure due to missing -nodefconfig · 39f8af38
      Daniel P. Berrange 提交于
      The previous change which split -nodefconfig probing off
      from -device broke the test case because it missed adding
      the QEMUD_CMD_FLAG_NODEFCONFIG to the test
      
      * src/util/bridge.c: Set QEMUD_CMD_FLAG_NODEFCONFIG for all
        configs with QEMUD_CMD_FLAG_DEVICE set
      39f8af38