[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] block/parallels: Fix buffer-based write call
From: |
Hanna Reitz |
Subject: |
[PATCH 0/2] block/parallels: Fix buffer-based write call |
Date: |
Thu, 14 Jul 2022 15:27:59 +0200 |
Hi,
While reviewing Stefanâs libblkio driver series, Iâve noticed that
block/parallels.c contains a call to bdrv_co_pwritev() that doesnât pass
a QEMUIOVector object but a plain buffer instead. That seems wrong and
also pretty dangerous, so change it to a bdrv_co_pwrite() call (as I
assume it should be), and add a regression test demonstrating the
problem.
Hanna Reitz (2):
block/parallels: Fix buffer-based write call
iotests/131: Add parallels regression test
block/parallels.c | 4 ++--
tests/qemu-iotests/131 | 35 ++++++++++++++++++++++++++++++++++-
tests/qemu-iotests/131.out | 13 +++++++++++++
3 files changed, 49 insertions(+), 3 deletions(-)
--
2.35.3
- [PATCH 0/2] block/parallels: Fix buffer-based write call,
Hanna Reitz <=