qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH for-2.1] block: Fix bdrv_is_allocated() return v


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH for-2.1] block: Fix bdrv_is_allocated() return value
Date: Tue, 8 Jul 2014 14:57:41 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 07.07.2014 um 17:37 hat Kevin Wolf geschrieben:
> bdrv_is_allocated() should return either 0 or 1 in successful cases.
> We're lucky that currently, the callers that rely on this (e.g. because
> they check for ret == 1) don't seem to break badly. They just might skip
> some optimisation or in the case of qemu-io 'map' print separate lines
> where a single line would suffice. In theory, a wrong allocation status
> could lead to image corruption with certain operations, so let's fix
> this quickly.
> 
> Signed-off-by: Kevin Wolf <address@hidden>

Applied to the block branch.

Kevin



reply via email to

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