[MacPorts] #32662: netbsd-iscsi-initiator
MacPorts
noreply at macports.org
Sun May 6 19:50:44 PDT 2012
#32662: netbsd-iscsi-initiator
--------------------------------+-------------------------------------------
Reporter: mrchulho@… | Owner: pixilla@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: lion clang | Port: netbsd-iscsi-initiator
--------------------------------+-------------------------------------------
Comment(by always.sed@…):
I'm curious if somebody managed to make netbsd initiator to work under OS
X
I gave it a try on my side and I found couple issues:
The -v needs a parameter based on
while ((i = getopt(argc, argv, "46a:bcd:Dfh:p:t:u:v:V")) != -1) {
The next issue seems to be the SendTarget command (src/lib/initiator.c).
The netbsd version sends "=all"
while linux target implementation expects "=All" (and it's case sensitive)
Once both issues are fixed I can get discovery running and was able to
get the list of targets/luns available
But the attempt to login (ISCSI_LOGIN_CMD) fails due to kernel crash on
the '''target''' side :-) (NULL pointer deference kernel version 2.6.37.6
)
Call Trace:
[<ffffffffa0065de5>] iscsi_create_default_params+0x815/0x9c0
[iscsi_target_mod]
[<ffffffffa006e515>] iscsi_target_login_thread+0x1485/0x1c80
[iscsi_target_mod]
[<ffffffff88071c90>] ? call_rcu_sched+0x10/0x20
[<ffffffff88003014>] kernel_thread_helper+0x4/0x10
[<ffffffffa006d090>] ? iscsi_target_login_thread+0x0/0x1c80
[iscsi_target_mod]
[<ffffffff88003010>] ? kernel_thread_helper+0x0/0x10
Tried with QNAP-459 PRO and ReadyNAS ultra4
Didn't have time to play more with it.
Replying to [comment:4 a639989@…]:
> Happened also with Snow Leo:
>
> iscsi-initiator -Dv -u myuser -h 192.168.1.10 /tmp/aa/
>
> pid 87152:util.c:878: ***ERROR*** connect() to localhost:3260 failed
(errno 61)
> pid 87152:initiator.c:1376: ***ERROR*** iscsi_sock_connect() failed
> pid 87152:initiator.c:1587: ***ERROR*** tx_worker[0]: session exited
prematurely (state 0x4)
> pid 87152:initiator.c:319: ***ERROR*** Tx worker 0 started with an error
> pid 87152:initiator.c:1262: ***ERROR*** session_init_i() failed
(ignoring command)
--
Ticket URL: <https://trac.macports.org/ticket/32662#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list