1. 19 12月, 2017 3 次提交
  2. 05 9月, 2017 1 次提交
  3. 04 9月, 2017 1 次提交
  4. 17 7月, 2017 1 次提交
  5. 11 7月, 2017 1 次提交
  6. 26 6月, 2017 2 次提交
  7. 20 6月, 2017 1 次提交
  8. 16 6月, 2017 1 次提交
  9. 09 5月, 2017 3 次提交
  10. 28 4月, 2017 1 次提交
  11. 24 4月, 2017 1 次提交
  12. 11 4月, 2017 2 次提交
  13. 03 4月, 2017 1 次提交
  14. 07 3月, 2017 9 次提交
  15. 01 3月, 2017 1 次提交
    • K
      block: Add BDRV_O_RESIZE for blk_new_open() · 55880601
      Kevin Wolf 提交于
      blk_new_open() is a convenience function that processes flags rather
      than QDict options as a simple way to just open an image file.
      
      In order to keep it convenient in the future, it must automatically
      request the necessary permissions. This can easily be inferred from the
      flags for read and write, but we need another flag that tells us whether
      to get the resize permission.
      
      We can't just always request it because that means that no block jobs
      can run on the resulting BlockBackend (which is something that e.g.
      qemu-img commit wants to do), but we also can't request it never because
      most of the .bdrv_create() implementations call blk_truncate().
      
      The solution is to introduce another flag that is passed by all users
      that want to resize the image.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Acked-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      55880601
  16. 21 2月, 2017 2 次提交
  17. 01 2月, 2017 5 次提交
  18. 04 1月, 2017 1 次提交
  19. 22 11月, 2016 1 次提交
    • E
      block: Return -ENOTSUP rather than assert on unaligned discards · 49228d1e
      Eric Blake 提交于
      Right now, the block layer rounds discard requests, so that
      individual drivers are able to assert that discard requests
      will never be unaligned.  But there are some ISCSI devices
      that track and coalesce multiple unaligned requests, turning it
      into an actual discard if the requests eventually cover an
      entire page, which implies that it is better to always pass
      discard requests as low down the stack as possible.
      
      In isolation, this patch has no semantic effect, since the
      block layer currently never passes an unaligned request through.
      But the block layer already has code that silently ignores
      drivers that return -ENOTSUP for a discard request that cannot
      be honored (as well as drivers that return 0 even when nothing
      was done).  But the next patch will update the block layer to
      fragment discard requests, so that clients are guaranteed that
      they are either dealing with an unaligned head or tail, or an
      aligned core, making it similar to the block layer semantics of
      write zero fragmentation.
      
      CC: qemu-stable@nongnu.org
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      49228d1e
  20. 28 10月, 2016 2 次提交