qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] block: Fix unaligned zero write
@ 2015-03-24  1:23 Fam Zheng
  2015-03-24  1:23 ` [Qemu-devel] [PATCH v2 1/2] " Fam Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fam Zheng @ 2015-03-24  1:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, pl, qemu-block, Stefan Hajnoczi, qemu-stable

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(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-24 13:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-24  1:23 [Qemu-devel] [PATCH v2 0/2] block: Fix unaligned zero write Fam Zheng
2015-03-24  1:23 ` [Qemu-devel] [PATCH v2 1/2] " Fam Zheng
2015-03-24  1:23 ` [Qemu-devel] [PATCH v2 2/2] qemu-iotests: Test unaligned 4k " Fam Zheng
2015-03-24 13:40 ` [Qemu-devel] [PATCH v2 0/2] block: Fix unaligned " Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).