[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 3/6] iscsi: Export virISCSITargetAutologin



Make it accessible for future patches

Signed-off-by: John Ferlan <jferlan redhat com>
---
 src/libvirt_private.syms | 1 +
 src/util/viriscsi.c      | 2 +-
 src/util/viriscsi.h      | 7 +++++++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index fb24808..719d753 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1675,6 +1675,7 @@ virISCSIGetSession;
 virISCSINodeUpdate;
 virISCSIRescanLUNs;
 virISCSIScanTargets;
+virISCSITargetAutologin;
 
 
 # util/virjson.h
diff --git a/src/util/viriscsi.c b/src/util/viriscsi.c
index be296d7..ea01b3d 100644
--- a/src/util/viriscsi.c
+++ b/src/util/viriscsi.c
@@ -404,7 +404,7 @@ virISCSIGetTargets(char **const groups,
 }
 
 
-static int
+int
 virISCSITargetAutologin(const char *portal,
                         const char *initiatoriqn,
                         const char *target,
diff --git a/src/util/viriscsi.h b/src/util/viriscsi.h
index f4093f7..3e7ea68 100644
--- a/src/util/viriscsi.h
+++ b/src/util/viriscsi.h
@@ -48,6 +48,13 @@ virISCSIRescanLUNs(const char *session)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
 
 int
+virISCSITargetAutologin(const char *portal,
+                        const char *initiatoriqn,
+                        const char *target,
+                        bool enable)
+    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3) ATTRIBUTE_RETURN_CHECK;
+
+int
 virISCSIScanTargets(const char *portal,
                     const char *initiatoriqn,
                     size_t *ntargetsret,
-- 
2.5.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]