From: Thomas L. <Tho...@pr...> - 2012-06-30 08:47:05
|
<html><head><style type="text/css">body {word-wrap: break-word; background-color:#ffffff;}</style></head><body><div style="font-family: sans-serif; font-size: 16px">Actually, I realize that's not a program big, its network issue and have been solved, no need to patch it. Thanks for helping</div><br><br>-----Original message-----<br><blockquote style="; border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: sans-serif; font-size: 14px"><b>From: </b>Bart Van Assche <bva...@ac...><b><br>To: </b>Thomas Lau <Tho...@pr...><b><br>Cc: </b>"scs...@li..." <scs...@li...><b><br>Sent: </b>Saturday, 30 June 2012 16:45:25 GMT+08:00<b><br>Subject: </b>Re: [Scst-devel] unable to see any LUN from esxi5 iscsi initiator<br><br></div><div><meta name="Generator" content="Microsoft Exchange Server"> <!-- converted from text --> <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style> <div> <font size="2"><div class="PlainText">On 06/30/12 03:30, Thomas Lau wrote:<br> <br> > FATAL: Received the following error:<br> > <br> > Failed to add LUN to group. See "dmesg" for more information. [FAILED]<br> <br> <br> Does the attached patch help ?<br> <br> [PATCH] scst: Fix sysfs code for parsing parameters when adding or replacing a LUN<br> <br> ---<br> scst/src/scst_sysfs.c | 7 +++----<br> 1 files changed, 3 insertions(+), 4 deletions(-)<br> <br> diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c<br> index 1d0a262..0509703 100644<br> --- a/scst/src/scst_sysfs.c<br> +++ b/scst/src/scst_sysfs.c<br> @@ -1155,12 +1155,11 @@ static int __scst_process_luns_mgmt_store(char *buffer,<br> goto out_unlock;<br> }<br> <br> - e = scst_get_next_lexem(&pp);<br> -<br> while (1) {<br> - char *pp;<br> unsigned long val;<br> - char *param = scst_get_next_token_str(&e);<br> + char *param = scst_get_next_token_str(&pp);<br> + char *pp;<br> +<br> if (param == NULL)<br> break;<br> <br> </div></font> </div> </div></blockquote></body></html> |