iSCSI initiator questions

Daisuke Aoyama aoyama at peach.ne.jp
Fri Apr 17 17:27:52 PDT 2009


Hi danny,

I got an error at isc_soc.c when compile. It should use 'z' length modifier
for size_t in C99. (usually '%zu' for size_t)

----------------------------------------------------------------------
cc -c -O1 -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
 -fformat-extensions -nostdinc  -I. -I../../.. -I../../../contrib/altq -D_KERNEL
 -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param
arge-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2
  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror
../../../dev/iscsi/initiator/isc_soc.c
cc1: warnings being treated as errors
../../../dev/iscsi/initiator/isc_soc.c: In function 'so_recv':
../../../dev/iscsi/initiator/isc_soc.c:438: warning: format '%ld' expects
type 'long int', but argument 3 has type 'size_t'
*** Error code 1
----------------------------------------------------------------------

I try to use 2.1.2 with istgt 20090416. (this version send-pr as 133782.
check http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/133782)
It seems to work at first connection but reconnection does not work.
It seems to receive digest with Login Request PDU. Even if digest was
used on previous connection, reset is reuqired on new connection.
(I tried simply "/usr/local/etc/rc.d/istgt restart")
Please check it when reconnection has occurred.
See also RFC3720 10.12 and 10.13 for Login Request/Response PDU format.

Thanks,
--
Daisuke Aoyama



More information about the freebsd-scsi mailing list