Hi,

On Aug 17, 2:07 pm, [email protected] wrote:
> From e7e8d62b02361c05e857cd87a68855725c3a72c7 Mon Sep 17 00:00:00 2001
> From: Hannes Reinecke <[email protected]>
> Date: Fri, 17 Jul 2009 16:00:39 +0200
> Subject: [PATCH] Synchronize startup settings

does not apply against current git tree. This one does:

--- a/usr/iscsiadm.c
+++ b/usr/iscsiadm.c
@@ -1585,6 +1585,26 @@ static int exec_node_op(int op, int do_login,
int do_logout,
                set_param.value = value;

                rc = for_each_matched_rec(rec, &set_param, idbm_node_set_param);
+
+               /*
+               * Compat hack:
+               * node.startup and node.conn[0].startup must be kept
+               * in sync so as not to confuse --loginall and --logoutall
+               */
+               if (!strcmp(name, "node.startup")) {
+                       log_debug(1, "synch node.conn[0].startup mode");
+                       set_param.name = "node.conn[0].startup";
+                       set_param.value = value;
+                       rc = for_each_matched_rec(rec, &set_param, 
idbm_node_set_param);
+               }
+
+               if (!strcmp(name, "node.conn[0].startup")) {
+                       log_debug(1, "synch node.startup modes");
+                       set_param.name = "node.startup";
+                       set_param.value = value;
+                       rc = for_each_matched_rec(rec, &set_param, 
idbm_node_set_param);
+               }
+
                goto out;
        } else if (op == OP_DELETE) {
                rc = for_each_matched_rec(rec, NULL, delete_node);

Best regards,

Craig

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to