1. 10 5月, 2012 6 次提交
  2. 08 5月, 2012 1 次提交
  3. 27 4月, 2012 4 次提交
  4. 20 4月, 2012 2 次提交
  5. 19 4月, 2012 1 次提交
  6. 05 4月, 2012 6 次提交
  7. 12 3月, 2012 1 次提交
    • S
      block: handle -EBUSY in bdrv_commit_all() · e8877497
      Stefan Hajnoczi 提交于
      Monitor operations that manipulate image files must not execute while a
      background job (like image streaming) is in progress.  This prevents
      corruptions from happening when two pieces of code are manipulating the
      image file without knowledge of each other.
      
      The monitor "commit" command raises QERR_DEVICE_IN_USE when
      bdrv_commit() returns -EBUSY but "commit all" has no error handling.
      This is easy to fix, although note that we do not deliver a detailed
      error about which device was busy in the "commit all" case.
      Suggested-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      e8877497
  8. 29 2月, 2012 3 次提交
  9. 23 2月, 2012 3 次提交
  10. 09 2月, 2012 2 次提交
    • S
      block: perform zero-detection during copy-on-read · 79c053bd
      Stefan Hajnoczi 提交于
      Copy-on-Read populates the image file with data read from a backing
      image.  In order to avoid bloating the image file when all zeroes are
      read we should scan the buffer and perform an optimized zero write
      operation.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      79c053bd
    • S
      block: add .bdrv_co_write_zeroes() interface · f08f2dda
      Stefan Hajnoczi 提交于
      The ability to zero regions of an image file is a useful primitive for
      higher-level features such as image streaming or zero write detection.
      
      Image formats may support an optimized metadata representation instead
      of writing zeroes into the image file.  This allows zero writes to be
      potentially faster than regular write operations and also preserve
      sparseness of the image file.
      
      The .bdrv_co_write_zeroes() interface should be implemented by block
      drivers that wish to provide efficient zeroing.
      
      Note that this operation is different from the discard operation, which
      may leave the contents of the region indeterminate.  That means
      discarded blocks are not guaranteed to contain zeroes and may contain
      junk data instead.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f08f2dda
  11. 26 1月, 2012 4 次提交
  12. 15 12月, 2011 3 次提交
  13. 05 12月, 2011 4 次提交