[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/2] block: Fix unaligned zero w
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/2] block: Fix unaligned zero write |
Date: |
Tue, 24 Mar 2015 13:40:07 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Mar 24, 2015 at 09:23:48AM +0800, Fam Zheng wrote:
> This fixes a segfault when doing unaligned zero write to an image that is 4k
> aligned.
>
> v2: Don't drop the unset of UNMAP flag. [Stefan, Peter]
>
> Reproducer:
>
> $ (echo "open -o file.align=4k blkdebug::img"; echo "write -z 512 1024")
> | qemu-io
>
> Fam Zheng (2):
> block: Fix unaligned zero write
> qemu-iotests: Test unaligned 4k zero write
>
> block.c | 45 ++++++++++++++++++++++++++++++++++++++------
> tests/qemu-iotests/033 | 47
> +++++++++++++++++++++++++++++-----------------
> tests/qemu-iotests/033.out | 26 +++++++++++++++++++++++++
> 3 files changed, 95 insertions(+), 23 deletions(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
pgpW8E_XHy49j.pgp
Description: PGP signature