Blame SOURCES/kvm-nbd-client-Fix-error-message-for-server-with-unusabl.patch

7711c0
From 4f02070b0278bfaebe0f9af1fcb5f2624693f57c Mon Sep 17 00:00:00 2001
7711c0
From: John Snow <jsnow@redhat.com>
7711c0
Date: Mon, 6 May 2019 17:56:28 +0200
7711c0
Subject: [PATCH 18/53] nbd/client: Fix error message for server with unusable
7711c0
 sizing
7711c0
7711c0
RH-Author: John Snow <jsnow@redhat.com>
7711c0
Message-id: <20190506175629.11079-19-jsnow@redhat.com>
7711c0
Patchwork-id: 87188
7711c0
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 18/19] nbd/client: Fix error message for server with unusable sizing
7711c0
Bugzilla: 1692018
7711c0
RH-Acked-by: Max Reitz <mreitz@redhat.com>
7711c0
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
7711c0
RH-Acked-by: Thomas Huth <thuth@redhat.com>
7711c0
7711c0
From: Eric Blake <eblake@redhat.com>
7711c0
7711c0
Add a missing space to the error message used when giving up on a
7711c0
server that insists on an alignment which renders the last few bytes
7711c0
of the export unreadable.
7711c0
7711c0
Fixes: 3add3ab78
7711c0
Signed-off-by: Eric Blake <eblake@redhat.com>
7711c0
Message-Id: <20190404145226.32649-1-eblake@redhat.com>
7711c0
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
7711c0
(cherry picked from commit e53f88df77e70350b0eda92a2e5e39f67792008f)
7711c0
Signed-off-by: John Snow <jsnow@redhat.com>
7711c0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
---
7711c0
 nbd/client.c | 2 +-
7711c0
 1 file changed, 1 insertion(+), 1 deletion(-)
7711c0
7711c0
diff --git a/nbd/client.c b/nbd/client.c
7711c0
index 4309569..49754120 100644
7711c0
--- a/nbd/client.c
7711c0
+++ b/nbd/client.c
7711c0
@@ -428,7 +428,7 @@ static int nbd_opt_info_or_go(QIOChannel *ioc, uint32_t opt,
7711c0
             }
7711c0
             if (info->min_block &&
7711c0
                 !QEMU_IS_ALIGNED(info->size, info->min_block)) {
7711c0
-                error_setg(errp, "export size %" PRIu64 "is not multiple of "
7711c0
+                error_setg(errp, "export size %" PRIu64 " is not multiple of "
7711c0
                            "minimum block size %" PRIu32, info->size,
7711c0
                            info->min_block);
7711c0
                 nbd_send_opt_abort(ioc);
7711c0
-- 
7711c0
1.8.3.1
7711c0