pve-qemu/debian/patches/pve/0043-vma-sizes-passed-to-bl...

28 lines
946 B
Diff
Raw Normal View History

2017-04-05 12:38:26 +03:00
From 220fb93343dc6c05989c903873d8ed68943848ef Mon Sep 17 00:00:00 2001
2017-04-05 11:49:19 +03:00
From: Wolfgang Bumiller <w.bumiller@proxmox.com>
Date: Fri, 21 Oct 2016 09:09:26 +0200
2017-04-05 12:38:26 +03:00
Subject: [PATCH 43/48] vma: sizes passed to blk_co_preadv should be bytes now
2017-04-05 11:49:19 +03:00
---
vma.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vma.c b/vma.c
2017-04-05 12:38:26 +03:00
index 4f55799..0491542 100644
2017-04-05 11:49:19 +03:00
--- a/vma.c
+++ b/vma.c
2017-04-05 12:38:26 +03:00
@@ -466,8 +466,8 @@ static void coroutine_fn backup_run(void *opaque)
2017-04-05 11:49:19 +03:00
iov.iov_len = VMA_CLUSTER_SIZE;
qemu_iovec_init_external(&qiov, &iov, 1);
- ret = blk_co_preadv(job->target, start * BACKUP_SECTORS_PER_CLUSTER,
- BACKUP_SECTORS_PER_CLUSTER, &qiov, 0);
+ ret = blk_co_preadv(job->target, start * VMA_CLUSTER_SIZE,
+ VMA_CLUSTER_SIZE, &qiov, 0);
if (ret < 0) {
vma_writer_set_error(job->vmaw, "read error", -1);
goto out;
--
2.1.4