diff options
author | Christopher 'm4z' Holm <them4z@gmail.com> | 2017-03-08 13:52:44 +0100 |
---|---|---|
committer | Christopher 'm4z' Holm <them4z@gmail.com> | 2017-03-08 13:52:44 +0100 |
commit | 0fcefa358121f4f32e7ca527fdd6ae6a86c06fe3 (patch) | |
tree | 37703ef9868a1fb9ff27fceef59545fd6e6f2040 /usr/iscsistart.c | |
parent | e9f2de4eef9f7cca4e125a7237d4f7bf2988a730 (diff) | |
parent | be78feaadeafd09e5fde709a25a74aa2656295c1 (diff) | |
download | open-iscsi-0fcefa358121f4f32e7ca527fdd6ae6a86c06fe3.tar.gz |
Merge branch 'master' into punctuation
Conflicts:
README
Diffstat (limited to 'usr/iscsistart.c')
-rw-r--r-- | usr/iscsistart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/iscsistart.c b/usr/iscsistart.c index 5cf0972..67ac475 100644 --- a/usr/iscsistart.c +++ b/usr/iscsistart.c @@ -140,6 +140,7 @@ static int apply_params(struct node_rec *rec) rec->session.initial_login_retry_max = -1; rec->conn[0].timeo.noop_out_interval = -1; rec->conn[0].timeo.noop_out_timeout = -1; + rec->session.scan = -1; list_for_each_entry(param, &user_params, list) { /* @@ -183,6 +184,8 @@ static int apply_params(struct node_rec *rec) rec->conn[0].timeo.noop_out_interval = 0; if (rec->conn[0].timeo.noop_out_timeout == -1) rec->conn[0].timeo.noop_out_timeout = 0; + if (rec->session.scan == -1) + rec->session.scan = DEF_INITIAL_SCAN; return 0; } |