|
|
786c6d |
From 65ce3a27da47cecf71015b16b1d186c49cbb7bcc Mon Sep 17 00:00:00 2001
|
|
|
786c6d |
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
|
|
|
786c6d |
Date: Tue, 17 Sep 2013 08:07:33 -0400
|
|
|
786c6d |
Subject: [PATCH] iscsi tools: Correctly get username_in and password_in
|
|
|
786c6d |
flashnode params
|
|
|
786c6d |
|
|
|
786c6d |
Fix to correctly read username_in and password_in sysfs params for
|
|
|
786c6d |
flashnode session.
|
|
|
786c6d |
|
|
|
786c6d |
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
|
|
|
786c6d |
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
|
|
|
786c6d |
---
|
|
|
786c6d |
usr/iscsi_sysfs.c | 4 ++--
|
|
|
786c6d |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
786c6d |
|
|
|
786c6d |
diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c
|
|
|
786c6d |
index 56cb90c..04c3673 100644
|
|
|
786c6d |
--- a/usr/iscsi_sysfs.c
|
|
|
786c6d |
+++ b/usr/iscsi_sysfs.c
|
|
|
786c6d |
@@ -601,12 +601,12 @@ int iscsi_sysfs_get_flashnode_info(struct flashnode_rec *fnode,
|
|
|
786c6d |
sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "username",
|
|
|
786c6d |
(fnode->sess).username, sizeof((fnode->sess).username));
|
|
|
786c6d |
sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "username_in",
|
|
|
786c6d |
- (fnode->sess).username,
|
|
|
786c6d |
+ (fnode->sess).username_in,
|
|
|
786c6d |
sizeof((fnode->sess).username_in));
|
|
|
786c6d |
sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "password",
|
|
|
786c6d |
(fnode->sess).password, sizeof((fnode->sess).password));
|
|
|
786c6d |
sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "password_in",
|
|
|
786c6d |
- (fnode->sess).password,
|
|
|
786c6d |
+ (fnode->sess).password_in,
|
|
|
786c6d |
sizeof((fnode->sess).password_in));
|
|
|
786c6d |
sysfs_get_uint(conn_id, ISCSI_FLASHNODE_SUBSYS, "statsn",
|
|
|
786c6d |
&((fnode->conn[0]).stat_sn));
|
|
|
786c6d |
--
|
|
|
786c6d |
1.8.3.1
|
|
|
786c6d |
|