|
|
7711c0 |
From 9dc089506f5893e309c458e5466566d112a7bb62 Mon Sep 17 00:00:00 2001
|
|
|
7711c0 |
From: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Date: Wed, 27 Mar 2019 17:22:17 +0100
|
|
|
7711c0 |
Subject: [PATCH 078/163] nbd: publish _lookup functions
|
|
|
7711c0 |
|
|
|
7711c0 |
RH-Author: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Message-id: <20190327172308.31077-5-jsnow@redhat.com>
|
|
|
7711c0 |
Patchwork-id: 85172
|
|
|
7711c0 |
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 04/55] nbd: publish _lookup functions
|
|
|
7711c0 |
Bugzilla: 1691009
|
|
|
7711c0 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
These functions are used for formatting pretty trace points. We are
|
|
|
7711c0 |
going to add some in block/nbd-client, so, let's publish all these
|
|
|
7711c0 |
functions at once. Note, that nbd_reply_type_lookup is already
|
|
|
7711c0 |
published, and constants, "named" by these functions live in
|
|
|
7711c0 |
include/block/nbd.h too.
|
|
|
7711c0 |
|
|
|
7711c0 |
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
|
7711c0 |
Message-Id: <20181102151152.288399-3-vsementsov@virtuozzo.com>
|
|
|
7711c0 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
7711c0 |
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
|
7711c0 |
(cherry picked from commit 757a0d05ea22d63e667db08a80b6ec6f1d53a12f)
|
|
|
7711c0 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
---
|
|
|
7711c0 |
include/block/nbd.h | 5 +++++
|
|
|
7711c0 |
nbd/nbd-internal.h | 5 -----
|
|
|
7711c0 |
2 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/include/block/nbd.h b/include/block/nbd.h
|
|
|
7711c0 |
index 6a5bfe5..65402d3 100644
|
|
|
7711c0 |
--- a/include/block/nbd.h
|
|
|
7711c0 |
+++ b/include/block/nbd.h
|
|
|
7711c0 |
@@ -343,5 +343,10 @@ static inline bool nbd_reply_is_structured(NBDReply *reply)
|
|
|
7711c0 |
}
|
|
|
7711c0 |
|
|
|
7711c0 |
const char *nbd_reply_type_lookup(uint16_t type);
|
|
|
7711c0 |
+const char *nbd_opt_lookup(uint32_t opt);
|
|
|
7711c0 |
+const char *nbd_rep_lookup(uint32_t rep);
|
|
|
7711c0 |
+const char *nbd_info_lookup(uint16_t info);
|
|
|
7711c0 |
+const char *nbd_cmd_lookup(uint16_t info);
|
|
|
7711c0 |
+const char *nbd_err_lookup(int err);
|
|
|
7711c0 |
|
|
|
7711c0 |
#endif
|
|
|
7711c0 |
diff --git a/nbd/nbd-internal.h b/nbd/nbd-internal.h
|
|
|
7711c0 |
index eeff78d..f38be9e 100644
|
|
|
7711c0 |
--- a/nbd/nbd-internal.h
|
|
|
7711c0 |
+++ b/nbd/nbd-internal.h
|
|
|
7711c0 |
@@ -100,11 +100,6 @@ struct NBDTLSHandshakeData {
|
|
|
7711c0 |
|
|
|
7711c0 |
void nbd_tls_handshake(QIOTask *task,
|
|
|
7711c0 |
void *opaque);
|
|
|
7711c0 |
-const char *nbd_opt_lookup(uint32_t opt);
|
|
|
7711c0 |
-const char *nbd_rep_lookup(uint32_t rep);
|
|
|
7711c0 |
-const char *nbd_info_lookup(uint16_t info);
|
|
|
7711c0 |
-const char *nbd_cmd_lookup(uint16_t info);
|
|
|
7711c0 |
-const char *nbd_err_lookup(int err);
|
|
|
7711c0 |
|
|
|
7711c0 |
int nbd_drop(QIOChannel *ioc, size_t size, Error **errp);
|
|
|
7711c0 |
|
|
|
7711c0 |
--
|
|
|
7711c0 |
1.8.3.1
|
|
|
7711c0 |
|