[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH 0/2] block: Fix unaligned zero write
From: |
Fam Zheng |
Subject: |
[Qemu-stable] [PATCH 0/2] block: Fix unaligned zero write |
Date: |
Mon, 23 Mar 2015 12:46:08 +0800 |
This fixes a segfault when doing unaligned zero write to a image that is 4k
aligned.
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 | 51 ++++++++++++++++++++++++++++++++++++++--------
tests/qemu-iotests/033 | 47 ++++++++++++++++++++++++++----------------
tests/qemu-iotests/033.out | 26 +++++++++++++++++++++++
3 files changed, 98 insertions(+), 26 deletions(-)
--
2.1.0
- [Qemu-stable] [PATCH 0/2] block: Fix unaligned zero write,
Fam Zheng <=