qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] block: Fix bdrv_is_allocated() for short bac


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v2] block: Fix bdrv_is_allocated() for short backing files
Date: Thu, 08 May 2014 19:57:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 07.05.2014 10:31, Kevin Wolf wrote:
bdrv_is_allocated() shouldn't return true for sectors that are
unallocated, but after the end of a short backing file, even though
such sectors are (correctly) marked as containing zeros.

Signed-off-by: Kevin Wolf <address@hidden>
---
v2:
- Set BDRV_BLOCK_ALLOCATED for !drv->bdrv_co_get_block_status (Max)

  block.c               | 10 ++++++----
  include/block/block.h | 11 +++++++----
  2 files changed, 13 insertions(+), 8 deletions(-)

Reviewed-by: Max Reitz <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]