qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 0/2] raw-posix: Fix raw_co_get_block_status()


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v2 0/2] raw-posix: Fix raw_co_get_block_status()
Date: Sat, 11 Oct 2014 10:55:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0

Am 09.10.2014 um 20:58 schrieb Benoît Canet:
On Wed, Oct 08, 2014 at 09:43:19PM +0200, Max Reitz wrote:
On 22.09.2014 17:36, Max Reitz wrote:
raw_co_get_block_status() should return 0 and set *pnum to 0 after the
EOF; currently it does this merely by accident, so implement it
directly. Also, nb_sectors should be clamped against the image end.

While doing that, centralize the generation of
raw_co_get_block_status()'s return value along the way.


v2:
- Patch 1: Clamp nb_sectors against image end
- Patch 2: Fix alignment issue


Max Reitz (2):
   raw-posix: Fix raw_co_get_block_status() after EOF
   raw-posix: raw_co_get_block_status() return value

  block/raw-posix.c | 36 ++++++++++++++++++++++--------------
  1 file changed, 22 insertions(+), 14 deletions(-)
Ping. (This should be rather simple to review)
Hi Max,

I will review these tomorow.

Thanks a lot for all of your reviews!

Max



reply via email to

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