1. 21 8月, 2011 1 次提交
  2. 18 7月, 2011 2 次提交
  3. 08 6月, 2011 1 次提交
  4. 31 1月, 2011 1 次提交
  5. 13 1月, 2011 1 次提交
  6. 17 12月, 2010 3 次提交
  7. 22 10月, 2010 1 次提交
  8. 21 9月, 2010 1 次提交
  9. 08 9月, 2010 1 次提交
  10. 31 7月, 2010 1 次提交
  11. 04 6月, 2010 1 次提交
  12. 28 5月, 2010 1 次提交
  13. 22 5月, 2010 1 次提交
  14. 23 4月, 2010 2 次提交
    • C
      block: get rid of the BDRV_O_FILE flag · 6db95603
      Christoph Hellwig 提交于
      BDRV_O_FILE is only used to communicate between bdrv_file_open and bdrv_open.
      It affects two things:  first bdrv_open only searches for protocols using
      find_protocol instead of all image formats and host drivers.  We can easily
      move that to the caller and pass the found driver to bdrv_open.  Second
      it is used to not force a read-write open of a snapshot file.  But we never
      use bdrv_file_open to open snapshots and this behaviour doesn't make sense
      to start with.
      
      qemu-io abused the BDRV_O_FILE for it's growable option, switch it to
      using bdrv_file_open to make sure we only open files as growable were
      we can actually support that.
      
      This patch requires Kevin's "[PATCH] Replace calls of old bdrv_open" to
      be applied first.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6db95603
    • K
      Replace calls of old bdrv_open · d6e9098e
      Kevin Wolf 提交于
      What is known today as bdrv_open2 becomes the new bdrv_open. All remaining
      callers of the old function are converted to the new one. In some places they
      even know the right format, so they should have used bdrv_open2 from the
      beginning.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      d6e9098e
  15. 28 3月, 2010 1 次提交
  16. 27 3月, 2010 1 次提交
  17. 27 1月, 2010 1 次提交
  18. 20 1月, 2010 1 次提交
  19. 23 12月, 2009 1 次提交
  20. 19 12月, 2009 1 次提交
  21. 13 12月, 2009 1 次提交
  22. 21 11月, 2009 1 次提交
  23. 10 9月, 2009 1 次提交
  24. 28 8月, 2009 1 次提交
    • C
      raw-posix: add Linux native AIO support · 5c6c3a6c
      Christoph Hellwig 提交于
      Now that do have a nicer interface to work against we can add Linux native
      AIO support.  It's an extremly thing layer just setting up an iocb for
      the io_submit system call in the submission path, and registering an
      eventfd with the qemu poll handler to do complete the iocbs directly
      from there.
      
      This started out based on Anthony's earlier AIO patch, but after
      estimated 42,000 rewrites and just as many build system changes
      there's not much left of it.
      
      To enable native kernel aio use the aio=native sub-command on the
      drive command line.  I have also added an option to qemu-io to
      test the aio support without needing a guest.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      5c6c3a6c
  25. 01 8月, 2009 1 次提交
  26. 22 7月, 2009 2 次提交
    • C
      qemu-io: reject invalid pattern · cf070d7e
      Christoph Hellwig 提交于
      Replace the use of atoi which is used for pattern parsing currently with
      strtol.  Atoi won't parse sedecimal pattern values (it always returns 0),
      but qemu-iotests use such pattern values.  Also reject every pattern
      that is not a unsigned char as we pass the pattern to memset which
      expect a bye value (despite having the pattern argument declared as int).
      
      Based on an earlier patch by Stefan Weil which did not include the
      error handling.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reported-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      cf070d7e
    • K
      qemu-io: Rework alloc command · a7824a88
      Kevin Wolf 提交于
      The alloc command in qemu-io is mostly useless currently. Instead of doing a
      single call to bdrv_is_allocated, we must call bdrv_is_allocated in a loop
      until we have found out for each requested sector if it is allocated or not
      (bdrv_is_allocated returns a number of sectors that are known to be in the same
      state as the first one, but it is not required to include all of them)
      
      This changes the output format of the alloc command so that a change to the
      expected output of qemu-iotests 019 is necessary once this is included.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a7824a88
  27. 17 7月, 2009 2 次提交
  28. 11 7月, 2009 4 次提交
  29. 24 6月, 2009 3 次提交