1. 29 1月, 2014 3 次提交
  2. 25 1月, 2014 36 次提交
  3. 24 1月, 2014 1 次提交
    • K
      block: Fix bdrv_commit return value · dabfa6cc
      Kevin Wolf 提交于
      bdrv_commit() could return 0 or 1 on success, depending on whether or
      not the last sector was allocated in the overlay and whether the overlay
      format had a .bdrv_make_empty callback.
      
      Most callers ignored it, but qemu-img commit would print an error
      message while the operation actually succeeded.
      
      Also clean up the handling of I/O errors to return the real error code
      instead of -EIO.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NBenoit Canet <benoit@irqsave.net>
      dabfa6cc