Merge pull request #197 from bonzini/libiscsi-20160330
Fix iscsi-ls for IPv6 link-local addresses, and bump ABI version again
This commit is contained in:
@@ -10,9 +10,9 @@ if !HAVE_LIBGCRYPT
|
|||||||
libiscsi_la_SOURCES += md5.c
|
libiscsi_la_SOURCES += md5.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SOCURRENT=6
|
SOCURRENT=7
|
||||||
SOREVISON=1
|
SOREVISON=1
|
||||||
SOAGE=2
|
SOAGE=0
|
||||||
libiscsi_la_LDFLAGS = \
|
libiscsi_la_LDFLAGS = \
|
||||||
-version-info $(SOCURRENT):$(SOREVISON):$(SOAGE) -bindir $(bindir) \
|
-version-info $(SOCURRENT):$(SOREVISON):$(SOAGE) -bindir $(bindir) \
|
||||||
-no-undefined -export-symbols ${srcdir}/libiscsi.syms
|
-no-undefined -export-symbols ${srcdir}/libiscsi.syms
|
||||||
|
|||||||
@@ -174,6 +174,11 @@ void list_luns(struct client_state *clnt, const char *target, const char *portal
|
|||||||
int full_report_size;
|
int full_report_size;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (strncasecmp(portal, "[fe80:", 6) == 0) {
|
||||||
|
fprintf(stderr, "skipping link-local address\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
iscsi = iscsi_create_context(initiator);
|
iscsi = iscsi_create_context(initiator);
|
||||||
if (iscsi == NULL) {
|
if (iscsi == NULL) {
|
||||||
printf("Failed to create context\n");
|
printf("Failed to create context\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user