From d84ee65eaad902bb41fa6bae1f8127e03cb63506 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 30 Mar 2016 17:55:03 +0200 Subject: [PATCH 1/2] iscsi-ls: skip link-local IPv6 addresses Some iSCSI targets provide a link-local IPv6 address as a portal, but that is unusable without knowing the interface (aka scope-id) to use for the connection. This causes iscsi-ls to report an EINVAL and exit. Just skip the error. Signed-off-by: Paolo Bonzini --- utils/iscsi-ls.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/iscsi-ls.c b/utils/iscsi-ls.c index bce6fc9..0a06224 100644 --- a/utils/iscsi-ls.c +++ b/utils/iscsi-ls.c @@ -174,6 +174,11 @@ void list_luns(struct client_state *clnt, const char *target, const char *portal int full_report_size; int i; + if (strncasecmp(portal, "[fe80:", 6) == 0) { + fprintf(stderr, "skipping link-local address\n"); + return; + } + iscsi = iscsi_create_context(initiator); if (iscsi == NULL) { printf("Failed to create context\n"); From edc5a808574b114924b4ef7f76921101a1a7f313 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 10 Jun 2014 13:38:46 +0200 Subject: [PATCH 2/2] bump ABI version again Commit 80b81772e27d814df2e452b57ca106e26546d440 again broke the libiscsi ABI. Bump the soname of the library. Signed-off-by: Paolo Bonzini --- lib/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Makefile.am b/lib/Makefile.am index d6b36ff..7306ae1 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -10,9 +10,9 @@ if !HAVE_LIBGCRYPT libiscsi_la_SOURCES += md5.c endif -SOCURRENT=6 +SOCURRENT=7 SOREVISON=1 -SOAGE=2 +SOAGE=0 libiscsi_la_LDFLAGS = \ -version-info $(SOCURRENT):$(SOREVISON):$(SOAGE) -bindir $(bindir) \ -no-undefined -export-symbols ${srcdir}/libiscsi.syms