1. 28 6月, 2014 1 次提交
  2. 27 6月, 2014 2 次提交
  3. 23 6月, 2014 1 次提交
  4. 16 6月, 2014 3 次提交
  5. 04 6月, 2014 1 次提交
  6. 30 5月, 2014 2 次提交
  7. 28 5月, 2014 4 次提交
  8. 19 5月, 2014 2 次提交
    • P
      block: optimize zero writes with bdrv_write_zeroes · 465bee1d
      Peter Lieven 提交于
      this patch tries to optimize zero write requests
      by automatically using bdrv_write_zeroes if it is
      supported by the format.
      
      This significantly speeds up file system initialization and
      should speed zero write test used to test backend storage
      performance.
      
      I ran the following 2 tests on my internal SSD with a
      50G QCOW2 container and on an attached iSCSI storage.
      
      a) mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/vdX
      
      QCOW2         [off]     [on]     [unmap]
      -----
      runtime:       14secs    1.1secs  1.1secs
      filesize:      937M      18M      18M
      
      iSCSI         [off]     [on]     [unmap]
      ----
      runtime:       9.3s      0.9s     0.9s
      
      b) dd if=/dev/zero of=/dev/vdX bs=1M oflag=direct
      
      QCOW2         [off]     [on]     [unmap]
      -----
      runtime:       246secs   18secs   18secs
      filesize:      51G       192K     192K
      throughput:    203M/s    2.3G/s   2.3G/s
      
      iSCSI*        [off]     [on]     [unmap]
      ----
      runtime:       8mins     45secs   33secs
      throughput:    106M/s    1.2G/s   1.6G/s
      allocated:     100%      100%     0%
      
      * The storage was connected via an 1Gbit interface.
        It seems to internally handle writing zeroes
        via WRITESAME16 very fast.
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      465bee1d
    • P
      blockdev: add a function to parse enum ids from strings · 82a402e9
      Peter Lieven 提交于
      this adds a generic function to recover the enum id of a parameter
      given as a string.
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      82a402e9
  9. 26 4月, 2014 1 次提交
  10. 25 4月, 2014 1 次提交
  11. 22 4月, 2014 2 次提交
    • K
      block: Catch duplicate IDs in bdrv_new() · f2d953ec
      Kevin Wolf 提交于
      Since commit f298d071, block devices added with blockdev-add don't have
      a QemuOpts around in dinfo->opts. Consequently, we can't rely any more
      on QemuOpts catching duplicate IDs for block devices.
      
      This patch adds a new check for duplicate IDs to bdrv_new(), and moves
      the existing check that the ID isn't already taken for a node-name there
      as well.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      f2d953ec
    • K
      block: Add errp to bdrv_new() · 98522f63
      Kevin Wolf 提交于
      This patch adds an errp parameter to bdrv_new() and updates all its
      callers. The next patches will make use of this in order to check for
      duplicate IDs. Most of the callers know that their ID is fine, so they
      can simply assert that there is no error.
      
      Behaviour doesn't change with this patch yet as bdrv_new() doesn't
      actually assign errors to errp.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      98522f63
  12. 11 4月, 2014 1 次提交
  13. 07 3月, 2014 2 次提交
  14. 22 2月, 2014 2 次提交
  15. 18 2月, 2014 1 次提交
  16. 15 2月, 2014 3 次提交
  17. 14 2月, 2014 1 次提交
  18. 24 1月, 2014 5 次提交
  19. 22 1月, 2014 1 次提交
  20. 07 1月, 2014 1 次提交
  21. 20 12月, 2013 1 次提交
  22. 16 12月, 2013 1 次提交
  23. 27 11月, 2013 1 次提交
    • M
      block/drive-mirror: Reuse backing HD for sync=none · 117e0c82
      Max Reitz 提交于
      For "none" sync mode in "absolute-paths" mode, the current image should
      be used as the backing file for the newly created image.
      
      The current behavior is:
      a) If the image to be mirrored has a backing file, use that (which is
         wrong, since the operations recorded by "none" are applied to the
         image itself, not to its backing file).
      b) If the image to be mirrored lacks a backing file, the target doesn't
         have one either (which is not really wrong, but not really right,
         either; "none" records a set of operations executed on the image
         file, therefore having no backing file to apply these operations on
         seems rather pointless).
      
      For a, this is clearly a bugfix. For b, it is still a bugfix, although
      it might break existing API - but since that case crashed qemu just
      three weeks ago (before 14526864), we
      can safely assume there is no such API relying on that case yet.
      Suggested-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1385407736-13941-2-git-send-email-mreitz@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      117e0c82