st discovery: fix reopen max handling
commitd984c57aa084698488911d8a2ca94314666f685e
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 19 Jan 2010 20:08:42 +0000 (19 14:08 -0600)
committerMike Christie <michaelc@cs.wisc.edu>
Mon, 22 Mar 2010 22:32:06 +0000 (22 17:32 -0500)
treeb9e819e856d8f3385c220277ab4d0b7b7f6bb832
parent38030899b5fda60fc853b6319c85ac59d9910b3a
st discovery: fix reopen max handling

reopen max was supposed to tbe the max number of login retries,
but as it is implemented it is the total numnber of login
retries. So if you set it to 1 you would only get one login
attempt, but you probably wanted 1 initial try and 1 retry.
This patch fixes the code so it is the number of retries.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
usr/discovery.c