[PATCH] tests: virstorage: Add tests for NBD URI style syntax over UNIX
by Peter Krempa
Add few test cases for nbd+unix style URIs with few corner cases.t
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
tests/virstoragetest.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c
index 370e19252b..4341c04b1e 100644
--- a/tests/virstoragetest.c
+++ b/tests/virstoragetest.c
@@ -1274,6 +1274,26 @@ mymain(void)
"<source protocol='nbd' name='exportname'>\n"
" <host name='example.org' port='1234'/>\n"
"</source>\n");
+ TEST_BACKING_PARSE("nbd+unix://?socket=/tmp/sock",
+ "<source protocol='nbd'>\n"
+ " <host transport='unix' socket='/tmp/sock'/>\n"
+ "</source>\n");
+ TEST_BACKING_PARSE("nbd+unix:///?socket=/tmp/sock",
+ "<source protocol='nbd'>\n"
+ " <host transport='unix' socket='/tmp/sock'/>\n"
+ "</source>\n");
+ TEST_BACKING_PARSE("nbd+unix:////?socket=/tmp/sock",
+ "<source protocol='nbd' name='/'>\n"
+ " <host transport='unix' socket='/tmp/sock'/>\n"
+ "</source>\n");
+ TEST_BACKING_PARSE("nbd+unix:///exp?socket=/tmp/sock",
+ "<source protocol='nbd' name='exp'>\n"
+ " <host transport='unix' socket='/tmp/sock'/>\n"
+ "</source>\n");
+ TEST_BACKING_PARSE("nbd+unix:////exp?socket=/tmp/sock",
+ "<source protocol='nbd' name='/exp'>\n"
+ " <host transport='unix' socket='/tmp/sock'/>\n"
+ "</source>\n");
TEST_BACKING_PARSE_FULL("iscsi://testuser:testpass@example.org:1234/exportname",
"<source protocol='iscsi' name='exportname'>\n"
" <host name='example.org' port='1234'/>\n"
--
2.24.1
4 years, 10 months
[libvirt PATCH] gitpublish: add a subject prefix
by Daniel P. Berrangé
Now that we removed the subject prefix tag from the mailman config
we should set 'libvirt' as the subject when sending patches.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
.gitpublish | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitpublish b/.gitpublish
index 857f0d552c..d37bf4174a 100644
--- a/.gitpublish
+++ b/.gitpublish
@@ -1,3 +1,4 @@
[gitpublishprofile "default"]
base = master
to = libvir-list(a)redhat.com
+prefix = libvirt PATCH
--
2.23.0
4 years, 10 months
[libvirt] [PATCH] esx: remove compatibility for old libcurl
by Daniel P. Berrangé
RHEL7 has libcurl 7.29.0, which is the oldest of any
supported build platform. Thus we no longer need the
back compat for libcurl < 7.28.0.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
src/esx/esx_vi.c | 151 -----------------------------------------------
src/esx/esx_vi.h | 9 ---
2 files changed, 160 deletions(-)
diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c
index 4e67d76bfe..421905c693 100644
--- a/src/esx/esx_vi.c
+++ b/src/esx/esx_vi.c
@@ -22,7 +22,6 @@
#include <config.h>
-#include <poll.h>
#include <libxml/parser.h>
#include <libxml/xpathInternals.h>
@@ -641,67 +640,6 @@ esxVI_SharedCURL_Remove(esxVI_SharedCURL *shared, esxVI_CURL *curl)
* MultiCURL
*/
-#if ESX_EMULATE_CURL_MULTI_WAIT
-
-static int
-esxVI_MultiCURL_SocketCallback(CURL *handle G_GNUC_UNUSED,
- curl_socket_t fd, int action,
- void *callback_opaque,
- void *socket_opaque G_GNUC_UNUSED)
-{
- esxVI_MultiCURL *multi = callback_opaque;
- size_t i;
- struct pollfd *pollfd = NULL;
- struct pollfd dummy;
-
- if (action & CURL_POLL_REMOVE) {
- for (i = 0; i < multi->npollfds; ++i) {
- if (multi->pollfds[i].fd == fd) {
- VIR_DELETE_ELEMENT(multi->pollfds, i, multi->npollfds);
- break;
- }
- }
- } else {
- for (i = 0; i < multi->npollfds; ++i) {
- if (multi->pollfds[i].fd == fd) {
- pollfd = &multi->pollfds[i];
- break;
- }
- }
-
- if (pollfd == NULL) {
- if (VIR_APPEND_ELEMENT(multi->pollfds, multi->npollfds, dummy) < 0)
- return 0; /* curl_multi_socket() doc says "The callback MUST return 0." */
-
- pollfd = &multi->pollfds[multi->npollfds - 1];
- }
-
- pollfd->fd = fd;
- pollfd->events = 0;
-
- if (action & CURL_POLL_IN)
- pollfd->events |= POLLIN;
-
- if (action & CURL_POLL_OUT)
- pollfd->events |= POLLOUT;
- }
-
- return 0;
-}
-
-static int
-esxVI_MultiCURL_TimerCallback(CURLM *handle G_GNUC_UNUSED,
- long timeout_ms G_GNUC_UNUSED,
- void *callback_opaque)
-{
- esxVI_MultiCURL *multi = callback_opaque;
-
- multi->timeoutPending = true;
-
- return 0;
-}
-
-#endif
/* esxVI_MultiCURL_Alloc */
ESX_VI__TEMPLATE__ALLOC(MultiCURL)
@@ -717,10 +655,6 @@ ESX_VI__TEMPLATE__FREE(MultiCURL,
if (item->handle)
curl_multi_cleanup(item->handle);
-
-#if ESX_EMULATE_CURL_MULTI_WAIT
- VIR_FREE(item->pollfds);
-#endif
})
int
@@ -747,14 +681,6 @@ esxVI_MultiCURL_Add(esxVI_MultiCURL *multi, esxVI_CURL *curl)
return -1;
}
-#if ESX_EMULATE_CURL_MULTI_WAIT
- curl_multi_setopt(multi->handle, CURLMOPT_SOCKETFUNCTION,
- esxVI_MultiCURL_SocketCallback);
- curl_multi_setopt(multi->handle, CURLMOPT_SOCKETDATA, multi);
- curl_multi_setopt(multi->handle, CURLMOPT_TIMERFUNCTION,
- esxVI_MultiCURL_TimerCallback);
- curl_multi_setopt(multi->handle, CURLMOPT_TIMERDATA, multi);
-#endif
}
virMutexLock(&curl->lock);
@@ -803,81 +729,6 @@ esxVI_MultiCURL_Remove(esxVI_MultiCURL *multi, esxVI_CURL *curl)
return 0;
}
-#if ESX_EMULATE_CURL_MULTI_WAIT
-
-int
-esxVI_MultiCURL_Wait(esxVI_MultiCURL *multi, int *runningHandles)
-{
- long timeout = -1;
- CURLMcode errorCode;
- int rc;
- size_t i;
- int action;
-
- if (multi->timeoutPending) {
- do {
- errorCode = curl_multi_socket_action(multi->handle, CURL_SOCKET_TIMEOUT,
- 0, runningHandles);
- } while (errorCode == CURLM_CALL_MULTI_SOCKET);
-
- if (errorCode != CURLM_OK) {
- virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Could not trigger socket action: %s (%d)"),
- curl_multi_strerror(errorCode), errorCode);
- return -1;
- }
-
- multi->timeoutPending = false;
- }
-
- if (multi->npollfds == 0)
- return 0;
-
- curl_multi_timeout(multi->handle, &timeout);
-
- if (timeout < 0)
- timeout = 1000; /* default to 1 sec timeout */
-
- do {
- rc = poll(multi->pollfds, multi->npollfds, timeout);
- } while (rc < 0 && (errno == EAGAIN || errno == EINTR));
-
- if (rc < 0) {
- virReportSystemError(errno, "%s", _("Could not wait for transfer"));
- return -1;
- }
-
- for (i = 0; i < multi->npollfds && rc > 0; ++i) {
- if (multi->pollfds[i].revents == 0)
- continue;
-
- --rc;
- action = 0;
-
- if (multi->pollfds[i].revents & POLLIN)
- action |= CURL_POLL_IN;
-
- if (multi->pollfds[i].revents & POLLOUT)
- action |= CURL_POLL_OUT;
-
- do {
- errorCode = curl_multi_socket_action(multi->handle,
- multi->pollfds[i].fd, action,
- runningHandles);
- } while (errorCode == CURLM_CALL_MULTI_SOCKET);
-
- if (errorCode != CURLM_OK) {
- virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Could not trigger socket action: %s (%d)"),
- curl_multi_strerror(errorCode), errorCode);
- return -1;
- }
- }
-
- return 0;
-}
-
-#else
int
esxVI_MultiCURL_Wait(esxVI_MultiCURL *multi, int *runningHandles)
@@ -902,8 +753,6 @@ esxVI_MultiCURL_Wait(esxVI_MultiCURL *multi, int *runningHandles)
return esxVI_MultiCURL_Perform(multi, runningHandles);
}
-#endif
-
int
esxVI_MultiCURL_Perform(esxVI_MultiCURL *multi, int *runningHandles)
{
diff --git a/src/esx/esx_vi.h b/src/esx/esx_vi.h
index bff2782ba1..5c60fd58f4 100644
--- a/src/esx/esx_vi.h
+++ b/src/esx/esx_vi.h
@@ -32,10 +32,6 @@
#include "esx_vi_types.h"
#include "esx_util.h"
-/* curl_multi_wait was added in libcurl 7.28.0, emulate it on older versions */
-#define ESX_EMULATE_CURL_MULTI_WAIT (LIBCURL_VERSION_NUM < 0x071C00)
-
-
#define ESX_VI__SOAP__REQUEST_HEADER \
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" \
@@ -159,11 +155,6 @@ int esxVI_SharedCURL_Remove(esxVI_SharedCURL *shared, esxVI_CURL *curl);
struct _esxVI_MultiCURL {
CURLM *handle;
size_t count; /* number of added easy handle */
-#if ESX_EMULATE_CURL_MULTI_WAIT
- struct pollfd *pollfds;
- size_t npollfds;
- bool timeoutPending;
-#endif
};
int esxVI_MultiCURL_Alloc(esxVI_MultiCURL **multi);
--
2.24.1
4 years, 10 months
[libvirt] [PATCH v2 00/12] include result of bootstrap in git
by Pavel Hrdina
This patch series is motivated by the effort to adopt Meson as our
build system but all of it improves the current build system on its own.
It moves the burden to run bootstrap/autoreconf to developers which
means it will save some time for others when there is any change to
the build system.
Since one of the patches is slightly bigger here is link to git:
<https://gitlab.com/phrdina/libvirt.git> branch <configure>
Changes in v2:
- some patches removed
Pavel Hrdina (12):
secret: move virSecretGetSecretString into virsecret
configure.ac: add check for getegid function
bootstrap.conf: drop gnulib tests from libvirt
bootstrap.conf: always copy files
bootstrap.conf: declare bootstrap sync in configuration file
bootstrap.conf: disable VC ignore files
bootstrap.conf: stop creating AUTHORS file
syntax-check: remove deleted daemon directory from space_indent_check
autogen.sh: fix autoreconf step
gnulib: store result of bootstrap in git
autogen.sh: remove --dry-run option
autogen.sh: remove --no-git and --gnulib-srcdir options
.git-module-status | 2 +
.gitignore | 18 -
INSTALL | 368 +
Makefile.am | 2 +-
Makefile.in | 2193 +
aclocal.m4 | 1717 +
autogen.sh | 82 +-
bootstrap.conf | 27 +-
build-aux/compile | 348 +
build-aux/config.guess | 1667 +
build-aux/config.sub | 1793 +
build-aux/depcomp | 791 +
build-aux/install-sh | 529 +
build-aux/ltmain.sh | 11149 ++++
build-aux/missing | 215 +
build-aux/syntax-check.mk | 23 +-
build-aux/test-driver | 148 +
config.h.in | 2288 +
configure | 55547 +++++++++++++++++++
configure.ac | 2 +-
docs/Makefile.in | 2484 +
docs/compiling.html.in | 13 -
examples/Makefile.in | 2364 +
gnulib/lib/Makefile.in | 3705 ++
gnulib/lib/_Noreturn.h | 40 +
gnulib/lib/accept.c | 52 +
gnulib/lib/alloca.c | 478 +
gnulib/lib/alloca.in.h | 71 +
gnulib/lib/arg-nonnull.h | 26 +
gnulib/lib/arpa_inet.in.h | 150 +
gnulib/lib/asnprintf.c | 34 +
gnulib/lib/assure.h | 37 +
gnulib/lib/binary-io.c | 39 +
gnulib/lib/binary-io.h | 77 +
gnulib/lib/bind.c | 49 +
gnulib/lib/c++defs.h | 316 +
gnulib/lib/chown.c | 151 +
gnulib/lib/cloexec.c | 83 +
gnulib/lib/cloexec.h | 38 +
gnulib/lib/close.c | 71 +
gnulib/lib/connect.c | 56 +
gnulib/lib/dup2.c | 235 +
gnulib/lib/errno.in.h | 279 +
gnulib/lib/fchown-stub.c | 16 +
gnulib/lib/fcntl.c | 627 +
gnulib/lib/fcntl.in.h | 392 +
gnulib/lib/fd-hook.c | 116 +
gnulib/lib/fd-hook.h | 119 +
gnulib/lib/filename.h | 54 +
gnulib/lib/float+.h | 147 +
gnulib/lib/float.c | 33 +
gnulib/lib/float.in.h | 188 +
gnulib/lib/fseek.c | 30 +
gnulib/lib/fseeko.c | 164 +
gnulib/lib/fstat.c | 94 +
gnulib/lib/gai_strerror.c | 92 +
gnulib/lib/getaddrinfo.c | 473 +
gnulib/lib/getdelim.c | 147 +
gnulib/lib/getdtablesize.c | 124 +
gnulib/lib/getgroups.c | 131 +
gnulib/lib/gethostname.c | 104 +
gnulib/lib/getline.c | 27 +
gnulib/lib/getpass.c | 231 +
gnulib/lib/getpass.h | 4 +
gnulib/lib/getpeername.c | 49 +
gnulib/lib/getsockname.c | 49 +
gnulib/lib/gettext.h | 301 +
gnulib/lib/getugroups.c | 128 +
gnulib/lib/getugroups.h | 19 +
gnulib/lib/glthread/threadlib.c | 73 +
gnulib/lib/gnulib.mk | 2629 +
gnulib/lib/inet_ntop.c | 260 +
gnulib/lib/intprops.h | 584 +
gnulib/lib/ioctl.c | 92 +
gnulib/lib/itold.c | 28 +
gnulib/lib/limits.in.h | 104 +
gnulib/lib/listen.c | 49 +
gnulib/lib/localcharset.c | 1159 +
gnulib/lib/localcharset.h | 137 +
gnulib/lib/locale.in.h | 305 +
gnulib/lib/localeconv.c | 103 +
gnulib/lib/lseek.c | 71 +
gnulib/lib/malloc.c | 56 +
gnulib/lib/malloca.c | 105 +
gnulib/lib/malloca.h | 123 +
gnulib/lib/memchr.c | 172 +
gnulib/lib/memchr.valgrind | 30 +
gnulib/lib/mgetgroups.c | 201 +
gnulib/lib/mgetgroups.h | 22 +
gnulib/lib/msvc-inval.c | 129 +
gnulib/lib/msvc-inval.h | 222 +
gnulib/lib/msvc-nothrow.c | 51 +
gnulib/lib/msvc-nothrow.h | 43 +
gnulib/lib/net_if.in.h | 53 +
gnulib/lib/netdb.in.h | 293 +
gnulib/lib/netinet_in.in.h | 47 +
gnulib/lib/nonblocking.c | 159 +
gnulib/lib/nonblocking.h | 62 +
gnulib/lib/open.c | 203 +
gnulib/lib/openpty.c | 136 +
gnulib/lib/passfd.c | 205 +
gnulib/lib/passfd.h | 32 +
gnulib/lib/pathmax.h | 83 +
gnulib/lib/physmem.c | 330 +
gnulib/lib/physmem.h | 26 +
gnulib/lib/pipe.c | 50 +
gnulib/lib/pipe2.c | 167 +
gnulib/lib/poll.c | 621 +
gnulib/lib/poll.in.h | 125 +
gnulib/lib/posix_openpt.c | 108 +
gnulib/lib/printf-args.c | 183 +
gnulib/lib/printf-args.h | 150 +
gnulib/lib/printf-parse.c | 632 +
gnulib/lib/printf-parse.h | 193 +
gnulib/lib/pthread_sigmask.c | 92 +
gnulib/lib/pty.in.h | 131 +
gnulib/lib/raise.c | 83 +
gnulib/lib/rawmemchr.c | 136 +
gnulib/lib/rawmemchr.valgrind | 28 +
gnulib/lib/realloc.c | 79 +
gnulib/lib/recv.c | 49 +
gnulib/lib/select.c | 583 +
gnulib/lib/send.c | 49 +
gnulib/lib/setsockopt.c | 65 +
gnulib/lib/sig-handler.c | 3 +
gnulib/lib/sig-handler.h | 51 +
gnulib/lib/sigaction.c | 204 +
gnulib/lib/signal.in.h | 475 +
gnulib/lib/sigprocmask.c | 349 +
gnulib/lib/size_max.h | 30 +
gnulib/lib/snprintf.c | 71 +
gnulib/lib/socket.c | 49 +
gnulib/lib/sockets.c | 161 +
gnulib/lib/sockets.h | 66 +
gnulib/lib/stat-time.c | 3 +
gnulib/lib/stat-time.h | 252 +
gnulib/lib/stat-w32.c | 425 +
gnulib/lib/stat-w32.h | 37 +
gnulib/lib/stat.c | 433 +
gnulib/lib/stdalign.in.h | 121 +
gnulib/lib/stdbool.in.h | 132 +
gnulib/lib/stddef.in.h | 121 +
gnulib/lib/stdint.in.h | 746 +
gnulib/lib/stdio-impl.h | 212 +
gnulib/lib/stdio-read.c | 164 +
gnulib/lib/stdio-write.c | 202 +
gnulib/lib/stdio.in.h | 1444 +
gnulib/lib/stdlib.in.h | 1112 +
gnulib/lib/strchrnul.c | 142 +
gnulib/lib/strchrnul.valgrind | 28 +
gnulib/lib/strdup.c | 54 +
gnulib/lib/streq.h | 176 +
gnulib/lib/string.in.h | 1067 +
gnulib/lib/strtok_r.c | 76 +
gnulib/lib/sys_ioctl.in.h | 79 +
gnulib/lib/sys_select.in.h | 319 +
gnulib/lib/sys_socket.c | 4 +
gnulib/lib/sys_socket.in.h | 721 +
gnulib/lib/sys_stat.in.h | 823 +
gnulib/lib/sys_time.in.h | 224 +
gnulib/lib/sys_types.in.h | 106 +
gnulib/lib/sys_uio.in.h | 63 +
gnulib/lib/sys_utsname.in.h | 108 +
gnulib/lib/sys_wait.in.h | 131 +
gnulib/lib/termios.in.h | 73 +
gnulib/lib/time.in.h | 364 +
gnulib/lib/time_r.c | 44 +
gnulib/lib/ttyname_r.c | 114 +
gnulib/lib/uname.c | 268 +
gnulib/lib/unistd.c | 4 +
gnulib/lib/unistd.in.h | 1719 +
gnulib/lib/unitypes.in.h | 46 +
gnulib/lib/uniwidth.in.h | 72 +
gnulib/lib/uniwidth/cjk.h | 37 +
gnulib/lib/uniwidth/width.c | 468 +
gnulib/lib/vasnprintf.c | 5615 ++
gnulib/lib/vasnprintf.h | 79 +
gnulib/lib/verify.h | 301 +
gnulib/lib/w32sock.h | 140 +
gnulib/lib/waitpid.c | 30 +
gnulib/lib/warn-on-use.h | 131 +
gnulib/lib/wchar.in.h | 1144 +
gnulib/lib/wctype-h.c | 4 +
gnulib/lib/wctype.in.h | 679 +
gnulib/lib/wcwidth.c | 73 +
gnulib/lib/xalloc-oversized.h | 60 +
gnulib/lib/xsize.c | 3 +
gnulib/lib/xsize.h | 117 +
gnulib/tests/Makefile.am | 32 -
include/libvirt/Makefile.in | 1778 +
m4/00gnulib.m4 | 46 +
m4/absolute-header.m4 | 102 +
m4/alloca.m4 | 128 +
m4/arpa_inet_h.m4 | 59 +
m4/asm-underscore.m4 | 72 +
m4/chown.m4 | 216 +
m4/close.m4 | 35 +
m4/codeset.m4 | 24 +
m4/configmake.m4 | 27 +
m4/dup2.m4 | 117 +
m4/eealloc.m4 | 31 +
m4/environ.m4 | 45 +
m4/errno_h.m4 | 133 +
m4/exponentd.m4 | 116 +
m4/extensions.m4 | 189 +
m4/extern-inline.m4 | 114 +
m4/fcntl-o.m4 | 139 +
m4/fcntl.m4 | 126 +
m4/fcntl_h.m4 | 52 +
m4/float_h.m4 | 108 +
m4/fseek.m4 | 15 +
m4/fseeko.m4 | 77 +
m4/fstat.m4 | 39 +
m4/getaddrinfo.m4 | 239 +
m4/getdelim.m4 | 98 +
m4/getdtablesize.m4 | 60 +
m4/getgroups.m4 | 109 +
m4/gethostname.m4 | 107 +
m4/getline.m4 | 109 +
m4/getpass.m4 | 106 +
m4/getugroups.m4 | 11 +
m4/gnulib-cache.m4 | 162 +
m4/gnulib-common.m4 | 459 +
m4/gnulib-comp.m4 | 1070 +
m4/gnulib-tool.m4 | 57 +
m4/hostent.m4 | 49 +
m4/include_next.m4 | 224 +
m4/inet_ntop.m4 | 70 +
m4/intmax_t.m4 | 59 +
m4/inttypes_h.m4 | 29 +
m4/ioctl.m4 | 44 +
m4/largefile.m4 | 177 +
m4/libtool.m4 | 8372 +++
m4/libunistring-base.m4 | 141 +
m4/limits-h.m4 | 43 +
m4/localcharset.m4 | 11 +
m4/locale_h.m4 | 158 +
m4/localeconv.m4 | 22 +
m4/lseek.m4 | 71 +
m4/ltoptions.m4 | 437 +
m4/ltsugar.m4 | 124 +
m4/ltversion.m4 | 23 +
m4/lt~obsolete.m4 | 99 +
m4/malloc.m4 | 104 +
m4/malloca.m4 | 14 +
m4/manywarnings-c++.m4 | 245 +
m4/manywarnings.m4 | 339 +
m4/math_h.m4 | 369 +
m4/memchr.m4 | 112 +
m4/mgetgroups.m4 | 10 +
m4/mmap-anon.m4 | 55 +
m4/mode_t.m4 | 26 +
m4/msvc-inval.m4 | 19 +
m4/msvc-nothrow.m4 | 10 +
m4/multiarch.m4 | 62 +
m4/net_if_h.m4 | 32 +
m4/netdb_h.m4 | 44 +
m4/netinet_in_h.m4 | 31 +
m4/nonblocking.m4 | 29 +
m4/off_t.m4 | 18 +
m4/open-cloexec.m4 | 21 +
m4/open-slash.m4 | 59 +
m4/open.m4 | 56 +
m4/passfd.m4 | 23 +
m4/pathmax.m4 | 42 +
m4/physmem.m4 | 46 +
m4/pipe.m4 | 15 +
m4/pipe2.m4 | 18 +
m4/poll.m4 | 107 +
m4/poll_h.m4 | 49 +
m4/posix-shell.m4 | 63 +
m4/posix_openpt.m4 | 19 +
m4/printf.m4 | 1692 +
m4/pthread_sigmask.m4 | 273 +
m4/pty.m4 | 160 +
m4/pty_h.m4 | 73 +
m4/raise.m4 | 36 +
m4/rawmemchr.m4 | 20 +
m4/realloc.m4 | 82 +
m4/select.m4 | 116 +
m4/servent.m4 | 51 +
m4/sigaction.m4 | 40 +
m4/signal_h.m4 | 83 +
m4/signalblocking.m4 | 25 +
m4/sigpipe.m4 | 29 +
m4/size_max.m4 | 75 +
m4/snprintf.m4 | 62 +
m4/socketlib.m4 | 90 +
m4/sockets.m4 | 17 +
m4/socklen.m4 | 76 +
m4/sockpfaf.m4 | 84 +
m4/ssize_t.m4 | 23 +
m4/stat-time.m4 | 83 +
m4/stat.m4 | 74 +
m4/stdalign.m4 | 57 +
m4/stdbool.m4 | 122 +
m4/stddef_h.m4 | 72 +
m4/stdint.m4 | 535 +
m4/stdint_h.m4 | 27 +
m4/stdio_h.m4 | 225 +
m4/stdlib_h.m4 | 136 +
m4/strchrnul.m4 | 50 +
m4/strdup.m4 | 36 +
m4/string_h.m4 | 122 +
m4/strtok_r.m4 | 73 +
m4/sys_ioctl_h.m4 | 64 +
m4/sys_select_h.m4 | 95 +
m4/sys_socket_h.m4 | 188 +
m4/sys_stat_h.m4 | 100 +
m4/sys_time_h.m4 | 110 +
m4/sys_types_h.m4 | 60 +
m4/sys_uio_h.m4 | 31 +
m4/sys_utsname_h.m4 | 54 +
m4/sys_wait_h.m4 | 36 +
m4/termios_h.m4 | 43 +
m4/threadlib.m4 | 586 +
m4/time_h.m4 | 144 +
m4/time_r.m4 | 99 +
m4/ttyname_r.m4 | 133 +
m4/uname.m4 | 19 +
m4/unistd_h.m4 | 201 +
m4/vasnprintf.m4 | 288 +
m4/waitpid.m4 | 14 +
m4/warn-on-use.m4 | 51 +
m4/warnings.m4 | 115 +
m4/wchar_h.m4 | 241 +
m4/wchar_t.m4 | 24 +
m4/wctype_h.m4 | 216 +
m4/wcwidth.m4 | 131 +
m4/wint_t.m4 | 74 +
m4/xsize.m4 | 12 +
po/Makefile.in | 1750 +
po/POTFILES.in | 1 -
src/Makefile.in | 15723 ++++++
src/libvirt_private.syms | 5 +-
src/libxl/libxl_conf.c | 2 +-
src/qemu/qemu_domain.c | 2 +-
src/qemu/qemu_process.c | 2 +-
src/qemu/qemu_tpm.c | 2 +-
src/secret/Makefile.inc.am | 11 -
src/secret/secret_util.c | 102 -
src/secret/secret_util.h | 33 -
src/storage/storage_backend_iscsi.c | 2 +-
src/storage/storage_backend_iscsi_direct.c | 2 +-
src/storage/storage_backend_rbd.c | 2 +-
src/storage/storage_util.c | 2 +-
src/util/virsecret.c | 69 +
src/util/virsecret.h | 8 +
tests/Makefile.in | 7432 +++
tools/Makefile.in | 3597 ++
350 files changed, 182955 insertions(+), 323 deletions(-)
create mode 100644 .git-module-status
create mode 100644 INSTALL
create mode 100644 Makefile.in
create mode 100644 aclocal.m4
create mode 100755 build-aux/compile
create mode 100755 build-aux/config.guess
create mode 100755 build-aux/config.sub
create mode 100755 build-aux/depcomp
create mode 100755 build-aux/install-sh
create mode 100644 build-aux/ltmain.sh
create mode 100755 build-aux/missing
create mode 100755 build-aux/test-driver
create mode 100644 config.h.in
create mode 100755 configure
create mode 100644 docs/Makefile.in
create mode 100644 examples/Makefile.in
create mode 100644 gnulib/lib/Makefile.in
create mode 100644 gnulib/lib/_Noreturn.h
create mode 100644 gnulib/lib/accept.c
create mode 100644 gnulib/lib/alloca.c
create mode 100644 gnulib/lib/alloca.in.h
create mode 100644 gnulib/lib/arg-nonnull.h
create mode 100644 gnulib/lib/arpa_inet.in.h
create mode 100644 gnulib/lib/asnprintf.c
create mode 100644 gnulib/lib/assure.h
create mode 100644 gnulib/lib/binary-io.c
create mode 100644 gnulib/lib/binary-io.h
create mode 100644 gnulib/lib/bind.c
create mode 100644 gnulib/lib/c++defs.h
create mode 100644 gnulib/lib/chown.c
create mode 100644 gnulib/lib/cloexec.c
create mode 100644 gnulib/lib/cloexec.h
create mode 100644 gnulib/lib/close.c
create mode 100644 gnulib/lib/connect.c
create mode 100644 gnulib/lib/dup2.c
create mode 100644 gnulib/lib/errno.in.h
create mode 100644 gnulib/lib/fchown-stub.c
create mode 100644 gnulib/lib/fcntl.c
create mode 100644 gnulib/lib/fcntl.in.h
create mode 100644 gnulib/lib/fd-hook.c
create mode 100644 gnulib/lib/fd-hook.h
create mode 100644 gnulib/lib/filename.h
create mode 100644 gnulib/lib/float+.h
create mode 100644 gnulib/lib/float.c
create mode 100644 gnulib/lib/float.in.h
create mode 100644 gnulib/lib/fseek.c
create mode 100644 gnulib/lib/fseeko.c
create mode 100644 gnulib/lib/fstat.c
create mode 100644 gnulib/lib/gai_strerror.c
create mode 100644 gnulib/lib/getaddrinfo.c
create mode 100644 gnulib/lib/getdelim.c
create mode 100644 gnulib/lib/getdtablesize.c
create mode 100644 gnulib/lib/getgroups.c
create mode 100644 gnulib/lib/gethostname.c
create mode 100644 gnulib/lib/getline.c
create mode 100644 gnulib/lib/getpass.c
create mode 100644 gnulib/lib/getpass.h
create mode 100644 gnulib/lib/getpeername.c
create mode 100644 gnulib/lib/getsockname.c
create mode 100644 gnulib/lib/gettext.h
create mode 100644 gnulib/lib/getugroups.c
create mode 100644 gnulib/lib/getugroups.h
create mode 100644 gnulib/lib/glthread/threadlib.c
create mode 100644 gnulib/lib/gnulib.mk
create mode 100644 gnulib/lib/inet_ntop.c
create mode 100644 gnulib/lib/intprops.h
create mode 100644 gnulib/lib/ioctl.c
create mode 100644 gnulib/lib/itold.c
create mode 100644 gnulib/lib/limits.in.h
create mode 100644 gnulib/lib/listen.c
create mode 100644 gnulib/lib/localcharset.c
create mode 100644 gnulib/lib/localcharset.h
create mode 100644 gnulib/lib/locale.in.h
create mode 100644 gnulib/lib/localeconv.c
create mode 100644 gnulib/lib/lseek.c
create mode 100644 gnulib/lib/malloc.c
create mode 100644 gnulib/lib/malloca.c
create mode 100644 gnulib/lib/malloca.h
create mode 100644 gnulib/lib/memchr.c
create mode 100644 gnulib/lib/memchr.valgrind
create mode 100644 gnulib/lib/mgetgroups.c
create mode 100644 gnulib/lib/mgetgroups.h
create mode 100644 gnulib/lib/msvc-inval.c
create mode 100644 gnulib/lib/msvc-inval.h
create mode 100644 gnulib/lib/msvc-nothrow.c
create mode 100644 gnulib/lib/msvc-nothrow.h
create mode 100644 gnulib/lib/net_if.in.h
create mode 100644 gnulib/lib/netdb.in.h
create mode 100644 gnulib/lib/netinet_in.in.h
create mode 100644 gnulib/lib/nonblocking.c
create mode 100644 gnulib/lib/nonblocking.h
create mode 100644 gnulib/lib/open.c
create mode 100644 gnulib/lib/openpty.c
create mode 100644 gnulib/lib/passfd.c
create mode 100644 gnulib/lib/passfd.h
create mode 100644 gnulib/lib/pathmax.h
create mode 100644 gnulib/lib/physmem.c
create mode 100644 gnulib/lib/physmem.h
create mode 100644 gnulib/lib/pipe.c
create mode 100644 gnulib/lib/pipe2.c
create mode 100644 gnulib/lib/poll.c
create mode 100644 gnulib/lib/poll.in.h
create mode 100644 gnulib/lib/posix_openpt.c
create mode 100644 gnulib/lib/printf-args.c
create mode 100644 gnulib/lib/printf-args.h
create mode 100644 gnulib/lib/printf-parse.c
create mode 100644 gnulib/lib/printf-parse.h
create mode 100644 gnulib/lib/pthread_sigmask.c
create mode 100644 gnulib/lib/pty.in.h
create mode 100644 gnulib/lib/raise.c
create mode 100644 gnulib/lib/rawmemchr.c
create mode 100644 gnulib/lib/rawmemchr.valgrind
create mode 100644 gnulib/lib/realloc.c
create mode 100644 gnulib/lib/recv.c
create mode 100644 gnulib/lib/select.c
create mode 100644 gnulib/lib/send.c
create mode 100644 gnulib/lib/setsockopt.c
create mode 100644 gnulib/lib/sig-handler.c
create mode 100644 gnulib/lib/sig-handler.h
create mode 100644 gnulib/lib/sigaction.c
create mode 100644 gnulib/lib/signal.in.h
create mode 100644 gnulib/lib/sigprocmask.c
create mode 100644 gnulib/lib/size_max.h
create mode 100644 gnulib/lib/snprintf.c
create mode 100644 gnulib/lib/socket.c
create mode 100644 gnulib/lib/sockets.c
create mode 100644 gnulib/lib/sockets.h
create mode 100644 gnulib/lib/stat-time.c
create mode 100644 gnulib/lib/stat-time.h
create mode 100644 gnulib/lib/stat-w32.c
create mode 100644 gnulib/lib/stat-w32.h
create mode 100644 gnulib/lib/stat.c
create mode 100644 gnulib/lib/stdalign.in.h
create mode 100644 gnulib/lib/stdbool.in.h
create mode 100644 gnulib/lib/stddef.in.h
create mode 100644 gnulib/lib/stdint.in.h
create mode 100644 gnulib/lib/stdio-impl.h
create mode 100644 gnulib/lib/stdio-read.c
create mode 100644 gnulib/lib/stdio-write.c
create mode 100644 gnulib/lib/stdio.in.h
create mode 100644 gnulib/lib/stdlib.in.h
create mode 100644 gnulib/lib/strchrnul.c
create mode 100644 gnulib/lib/strchrnul.valgrind
create mode 100644 gnulib/lib/strdup.c
create mode 100644 gnulib/lib/streq.h
create mode 100644 gnulib/lib/string.in.h
create mode 100644 gnulib/lib/strtok_r.c
create mode 100644 gnulib/lib/sys_ioctl.in.h
create mode 100644 gnulib/lib/sys_select.in.h
create mode 100644 gnulib/lib/sys_socket.c
create mode 100644 gnulib/lib/sys_socket.in.h
create mode 100644 gnulib/lib/sys_stat.in.h
create mode 100644 gnulib/lib/sys_time.in.h
create mode 100644 gnulib/lib/sys_types.in.h
create mode 100644 gnulib/lib/sys_uio.in.h
create mode 100644 gnulib/lib/sys_utsname.in.h
create mode 100644 gnulib/lib/sys_wait.in.h
create mode 100644 gnulib/lib/termios.in.h
create mode 100644 gnulib/lib/time.in.h
create mode 100644 gnulib/lib/time_r.c
create mode 100644 gnulib/lib/ttyname_r.c
create mode 100644 gnulib/lib/uname.c
create mode 100644 gnulib/lib/unistd.c
create mode 100644 gnulib/lib/unistd.in.h
create mode 100644 gnulib/lib/unitypes.in.h
create mode 100644 gnulib/lib/uniwidth.in.h
create mode 100644 gnulib/lib/uniwidth/cjk.h
create mode 100644 gnulib/lib/uniwidth/width.c
create mode 100644 gnulib/lib/vasnprintf.c
create mode 100644 gnulib/lib/vasnprintf.h
create mode 100644 gnulib/lib/verify.h
create mode 100644 gnulib/lib/w32sock.h
create mode 100644 gnulib/lib/waitpid.c
create mode 100644 gnulib/lib/warn-on-use.h
create mode 100644 gnulib/lib/wchar.in.h
create mode 100644 gnulib/lib/wctype-h.c
create mode 100644 gnulib/lib/wctype.in.h
create mode 100644 gnulib/lib/wcwidth.c
create mode 100644 gnulib/lib/xalloc-oversized.h
create mode 100644 gnulib/lib/xsize.c
create mode 100644 gnulib/lib/xsize.h
delete mode 100644 gnulib/tests/Makefile.am
create mode 100644 include/libvirt/Makefile.in
create mode 100644 m4/00gnulib.m4
create mode 100644 m4/absolute-header.m4
create mode 100644 m4/alloca.m4
create mode 100644 m4/arpa_inet_h.m4
create mode 100644 m4/asm-underscore.m4
create mode 100644 m4/chown.m4
create mode 100644 m4/close.m4
create mode 100644 m4/codeset.m4
create mode 100644 m4/configmake.m4
create mode 100644 m4/dup2.m4
create mode 100644 m4/eealloc.m4
create mode 100644 m4/environ.m4
create mode 100644 m4/errno_h.m4
create mode 100644 m4/exponentd.m4
create mode 100644 m4/extensions.m4
create mode 100644 m4/extern-inline.m4
create mode 100644 m4/fcntl-o.m4
create mode 100644 m4/fcntl.m4
create mode 100644 m4/fcntl_h.m4
create mode 100644 m4/float_h.m4
create mode 100644 m4/fseek.m4
create mode 100644 m4/fseeko.m4
create mode 100644 m4/fstat.m4
create mode 100644 m4/getaddrinfo.m4
create mode 100644 m4/getdelim.m4
create mode 100644 m4/getdtablesize.m4
create mode 100644 m4/getgroups.m4
create mode 100644 m4/gethostname.m4
create mode 100644 m4/getline.m4
create mode 100644 m4/getpass.m4
create mode 100644 m4/getugroups.m4
create mode 100644 m4/gnulib-cache.m4
create mode 100644 m4/gnulib-common.m4
create mode 100644 m4/gnulib-comp.m4
create mode 100644 m4/gnulib-tool.m4
create mode 100644 m4/hostent.m4
create mode 100644 m4/include_next.m4
create mode 100644 m4/inet_ntop.m4
create mode 100644 m4/intmax_t.m4
create mode 100644 m4/inttypes_h.m4
create mode 100644 m4/ioctl.m4
create mode 100644 m4/largefile.m4
create mode 100644 m4/libtool.m4
create mode 100644 m4/libunistring-base.m4
create mode 100644 m4/limits-h.m4
create mode 100644 m4/localcharset.m4
create mode 100644 m4/locale_h.m4
create mode 100644 m4/localeconv.m4
create mode 100644 m4/lseek.m4
create mode 100644 m4/ltoptions.m4
create mode 100644 m4/ltsugar.m4
create mode 100644 m4/ltversion.m4
create mode 100644 m4/lt~obsolete.m4
create mode 100644 m4/malloc.m4
create mode 100644 m4/malloca.m4
create mode 100644 m4/manywarnings-c++.m4
create mode 100644 m4/manywarnings.m4
create mode 100644 m4/math_h.m4
create mode 100644 m4/memchr.m4
create mode 100644 m4/mgetgroups.m4
create mode 100644 m4/mmap-anon.m4
create mode 100644 m4/mode_t.m4
create mode 100644 m4/msvc-inval.m4
create mode 100644 m4/msvc-nothrow.m4
create mode 100644 m4/multiarch.m4
create mode 100644 m4/net_if_h.m4
create mode 100644 m4/netdb_h.m4
create mode 100644 m4/netinet_in_h.m4
create mode 100644 m4/nonblocking.m4
create mode 100644 m4/off_t.m4
create mode 100644 m4/open-cloexec.m4
create mode 100644 m4/open-slash.m4
create mode 100644 m4/open.m4
create mode 100644 m4/passfd.m4
create mode 100644 m4/pathmax.m4
create mode 100644 m4/physmem.m4
create mode 100644 m4/pipe.m4
create mode 100644 m4/pipe2.m4
create mode 100644 m4/poll.m4
create mode 100644 m4/poll_h.m4
create mode 100644 m4/posix-shell.m4
create mode 100644 m4/posix_openpt.m4
create mode 100644 m4/printf.m4
create mode 100644 m4/pthread_sigmask.m4
create mode 100644 m4/pty.m4
create mode 100644 m4/pty_h.m4
create mode 100644 m4/raise.m4
create mode 100644 m4/rawmemchr.m4
create mode 100644 m4/realloc.m4
create mode 100644 m4/select.m4
create mode 100644 m4/servent.m4
create mode 100644 m4/sigaction.m4
create mode 100644 m4/signal_h.m4
create mode 100644 m4/signalblocking.m4
create mode 100644 m4/sigpipe.m4
create mode 100644 m4/size_max.m4
create mode 100644 m4/snprintf.m4
create mode 100644 m4/socketlib.m4
create mode 100644 m4/sockets.m4
create mode 100644 m4/socklen.m4
create mode 100644 m4/sockpfaf.m4
create mode 100644 m4/ssize_t.m4
create mode 100644 m4/stat-time.m4
create mode 100644 m4/stat.m4
create mode 100644 m4/stdalign.m4
create mode 100644 m4/stdbool.m4
create mode 100644 m4/stddef_h.m4
create mode 100644 m4/stdint.m4
create mode 100644 m4/stdint_h.m4
create mode 100644 m4/stdio_h.m4
create mode 100644 m4/stdlib_h.m4
create mode 100644 m4/strchrnul.m4
create mode 100644 m4/strdup.m4
create mode 100644 m4/string_h.m4
create mode 100644 m4/strtok_r.m4
create mode 100644 m4/sys_ioctl_h.m4
create mode 100644 m4/sys_select_h.m4
create mode 100644 m4/sys_socket_h.m4
create mode 100644 m4/sys_stat_h.m4
create mode 100644 m4/sys_time_h.m4
create mode 100644 m4/sys_types_h.m4
create mode 100644 m4/sys_uio_h.m4
create mode 100644 m4/sys_utsname_h.m4
create mode 100644 m4/sys_wait_h.m4
create mode 100644 m4/termios_h.m4
create mode 100644 m4/threadlib.m4
create mode 100644 m4/time_h.m4
create mode 100644 m4/time_r.m4
create mode 100644 m4/ttyname_r.m4
create mode 100644 m4/uname.m4
create mode 100644 m4/unistd_h.m4
create mode 100644 m4/vasnprintf.m4
create mode 100644 m4/waitpid.m4
create mode 100644 m4/warn-on-use.m4
create mode 100644 m4/warnings.m4
create mode 100644 m4/wchar_h.m4
create mode 100644 m4/wchar_t.m4
create mode 100644 m4/wctype_h.m4
create mode 100644 m4/wcwidth.m4
create mode 100644 m4/wint_t.m4
create mode 100644 m4/xsize.m4
create mode 100644 po/Makefile.in
create mode 100644 src/Makefile.in
delete mode 100644 src/secret/secret_util.c
delete mode 100644 src/secret/secret_util.h
create mode 100644 tests/Makefile.in
create mode 100644 tools/Makefile.in
--
2.24.1
4 years, 10 months
[libvirt] [PATCH v4 0/5] Introduce flags to virDomainGetHostname()
by Michal Privoznik
v4 of:
https://www.redhat.com/archives/libvir-list/2019-December/msg01453.html
diff to v3:
- I've split Julio's one patch into 4 smaller ones,
- I've fixed issues I've raised in v3, like new error code (patch 1/5 is
completely new that's why I'm authoring it), fixed the completer and
some memleaks.
Julio Faracco (4):
Introduce source flags to virDomainGetHostname()
qemu: Implement virDomainGetHostnameFlags
lxc: Implement virDomainGetHostnameFlags
virsh: Expose virDomainGetHostnameFlags
Michal Prívozník (1):
virerror: Make it easier to add new error number
docs/manpages/virsh.rst | 7 +-
include/libvirt/libvirt-domain.h | 6 ++
include/libvirt/virterror.h | 1 +
scripts/apibuild.py | 6 ++
src/libvirt-domain.c | 9 ++-
src/lxc/lxc_driver.c | 79 +++++++++++++++++++
src/qemu/qemu_driver.c | 125 +++++++++++++++++++++++++++----
src/remote/remote_daemon.c | 1 +
src/util/virerror.c | 7 +-
tools/virsh-completer-domain.c | 19 +++++
tools/virsh-completer-domain.h | 4 +
tools/virsh-domain.c | 37 ++++++++-
tools/virsh-domain.h | 8 ++
13 files changed, 286 insertions(+), 23 deletions(-)
--
2.24.1
4 years, 10 months
[libvirt] [PATCH] gnulib: Pull in latest changes
by Andrea Bolognani
In particular, we're interested in the following commits:
commit 43b5194d5b156f8dd7ae576952568d331978f5f0
Author: Bruno Haible <bruno(a)clisp.org>
Date: Sun Jan 5 20:42:12 2020 +0100
tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
* lib/stdlib.in.h: Tweak last commit.
commit b7d7afe10ddf599452bd80b8a840c830cd474b09
Author: Bruno Haible <bruno(a)clisp.org>
Date: Sun Jan 5 09:13:25 2020 +0100
tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
Reported by Jim Meyering in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
* lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
(GNULIB_defined_ptsname_r): New macro.
* tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
(main): Disable the NULL argument test if canonicalize_file_name does
not come from gnulib.
* tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
(main): Disable the NULL argument test if canonicalize_file_name does
not come from gnulib.
* tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
(test_errors): Disable the NULL argument test if ptsname_r does not come
from gnulib.
since they fix a build failure caused by the gnulib tests failing
on ppc64le, as reported in
https://www.redhat.com/archives/libvir-list/2020-January/msg00616.html
Reported-by: Satheesh Rajendran <sathnaga(a)linux.vnet.ibm.com>
Tracked-down-by: Bruno Haible <bruno(a)clisp.org>
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
Note that I have not actually had the time to confirm this fixes
the problem, or to reproduce it in the first place (I'll do that
tomorrow). Either way, it's waaaaay too late for this to make it
into v6.0.0; I'm mostly posting this so that the reporter can
have a go at testing it in the meantime.
.gnulib | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gnulib b/.gnulib
index 7d06937892..611869be9f 160000
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit 7d069378921bfa0d7c7198ea177aac0a2440016f
+Subproject commit 611869be9f1083e53305446d90a2909fc89914ef
--
2.24.1
4 years, 10 months
[libvirt] [libvirt-tck PATCH] Support version compare
by dzheng@redhat.com
From: Dan Zheng <dzheng(a)redhat.com>
Some APIs are only supported from new version. This is to compare
the current running version to the supporting version in order to
decide if one test should be skipped.
Signed-off-by: Dan Zheng <dzheng(a)redhat.com>
---
lib/Sys/Virt/TCK.pm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/lib/Sys/Virt/TCK.pm b/lib/Sys/Virt/TCK.pm
index a641d01..98ea945 100644
--- a/lib/Sys/Virt/TCK.pm
+++ b/lib/Sys/Virt/TCK.pm
@@ -1229,6 +1229,21 @@ sub get_host_block_device {
return $match ? $device : undef;
}
+sub compare_version {
+ my $self = shift;
+ my $to_version = shift;
+
+ my $from_version = `rpm -q perl-Sys-Virt | cut -d'-' -f4`;
+ $from_version =~ s/\R//g;
+ print "Current version:$from_version compares to $to_version\n";
+ $from_version =~ /(\d+).(\d+).(\d+)/;
+ $from_version = $1 * 1000000 + $2 * 1000 + $3;
+
+ $to_version =~ /(\d+).(\d+).(\d+)/;
+ $to_version = $1 * 1000000 + $2 * 1000 + $3;
+ return ($from_version ge $to_version)? 1 : 0;
+}
+
sub get_host_network_device {
my $self = shift;
my $devindex = @_ ? shift : 0;
--
2.18.1
4 years, 10 months
[libvirt] FYI: intention to remove mail subject prefix & footer text
by Daniel P. Berrangé
Hi List Subscribers,
In recent months we have been seeing an increasing number of bounced
deliveries from libvirt mailing lists[1] due to DMARC policies on list
subscriber's mail servers. IOW, many subscribers are only receiving
a subset of mails sent to the libvirt mailing lists.
We believe the root cause of many of the problems is that mailman is
modifying the mail subject to add the "[libvirt]" / "[libvirt-users]"
prefix, and modifying the mail body to add the footer with links to
the listinfo page.
These modifications invalidate the DKIM signatures on mails sent to
the list by some of our subscribers. This in turn causes DMARC policy
rejections by the destination SMTP servers when mailman delivers
messages.
The solution is to disable any feature in mailman which modifies
parts of the mail validated by the DKIM signature. This means removing
the subject prefix and the mail body header. Further information on
this approach can be seen here:
https://begriffs.com/posts/2018-09-18-dmarc-mailing-list.html
QEMU has made the same change on their mailing list last year:
https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg00416.html
If you are currently doing mail filtering / sorting based on the subject
prefix, you will need to change to use the List-Id header instead.
I will wait until the latter part of next week before making this change
to allow people time to adapt any filters.
Regards,
Daniel
[1] technically moderators have only been seeing bounces for messages on
libvirt-users-list, but that's because we've got mailman configured
to send libvir-list bounces to /dev/null.
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
4 years, 10 months
[libvirt] [PATCH 0/2] fix segfaults on qemuhotplugtest
by Christian Ehrhardt
After debugging for a while and eventually finding the root cause we
discussed this on IRC today:
<cpaelzer> danpb: BTW the test crash in 6.0 that I'm tracing (asked yesterday)
is virHostdevManagerInitialize failing
<cpaelzer> the test goes on with mgr set to 0x0 and that is the segfault
later on
<cpaelzer> virSetError was helpful as "Could not initialize HostdevManager
operation failed: Failed to create state dir
'/sbuild-nonexistent/.cache/libvirt/hostdevmgr'" sounds like a
very testbed-specific issue that I might be able to solve when
invoking the tests
<danpb> hmm, seems like we're missing a mock for mkdir()
<danpb> i guess we should mock virFileMakePath in this case
This series got v6.0.0 building in Ubuntu, so I thought it is worth to
submit it for review.
Christian Ehrhardt (2):
test: let qemuhotplugtest report details of init fails
test: qemuhotplugtest mock virFileMakePath
tests/qemuhotplugmock.c | 18 ++++++++++++++++++
tests/qemuhotplugtest.c | 5 +++++
2 files changed, 23 insertions(+)
--
2.25.0
4 years, 10 months
[libvirt] [PATCH] maint: Post-release version bump to 6.1.0
by Ján Tomko
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
configure.ac | 2 +-
docs/news.xml | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 002a3dcdb0..8837928358 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@ dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library. If not, see
dnl <http://www.gnu.org/licenses/>.
-AC_INIT([libvirt], [6.0.0], [libvir-list(a)redhat.com], [], [https://libvirt.org])
+AC_INIT([libvirt], [6.1.0], [libvir-list(a)redhat.com], [], [https://libvirt.org])
if test $srcdir = "."
then
diff --git a/docs/news.xml b/docs/news.xml
index 731f010297..056c7ef026 100644
--- a/docs/news.xml
+++ b/docs/news.xml
@@ -42,6 +42,14 @@
-->
<libvirt>
+ <release version="v6.1.0" date="unreleased">
+ <section title="New features">
+ </section>
+ <section title="Improvements">
+ </section>
+ <section title="Bug fixes">
+ </section>
+ </release>
<release version="v6.0.0" date="2020-01-15">
<section title="Packaging changes">
<change>
--
2.19.2
4 years, 10 months