[Pkg-iscsi-maintainers] [open-iscsi] 02/48: flashnode: Add support to set ISCSI_FLASHNODE_CHAP_OUT_IDX param

Ritesh Raj Sarraf rrs at moszumanska.debian.org
Wed Aug 20 13:54:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

rrs pushed a commit to branch upstream-mnc
in repository open-iscsi.

commit 360a40f8a83e08a09b34cb12e269c793028b315e
Author: Adheer Chandravanshi <adheer.chandravanshi at qlogic.com>
Date:   Tue Sep 17 08:07:28 2013 -0400

    flashnode: Add support to set ISCSI_FLASHNODE_CHAP_OUT_IDX param
    
    Add support to set the chap_out_idx session param of flashnode
    entry.
    
    Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi at qlogic.com>
    Signed-off-by: Vikas Chaudhary <vikas.chaudhary at qlogic.com>
---
 usr/flashnode.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/usr/flashnode.c b/usr/flashnode.c
index da1392a..fe5ab57 100644
--- a/usr/flashnode.c
+++ b/usr/flashnode.c
@@ -449,6 +449,12 @@ int flashnode_build_config(struct list_head *params,
 			    fnode->sess.portal_type,
 			    sizeof(fnode->sess.portal_type)))
 				count++;
+		} else if (!strcmp(param->name,
+			  to_key(FLASHNODE_SESS_CHAP_OUT_IDX))) {
+			if (!flashnode_fill_uint32(fnode, &iov[count],
+			    ISCSI_FLASHNODE_CHAP_OUT_IDX,
+			    fnode->sess.chap_out_idx))
+				count++;
 		} else if (!strcmp(param->name, to_key(FLASHNODE_CONN_PORT))) {
 			if (fnode->conn[0].port)
 				port = fnode->conn[0].port;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-iscsi/open-iscsi.git



More information about the Pkg-iscsi-maintainers mailing list