Anybody have any experience or documentation they could share on how to
configure tgt to work with a QLogic 2xxx HBA ?
Attempts to compile using "make FCP=1" fails. I assume the source code
has to be extracted in a location relative to the linux kernel.. The
error messages relate to missing kernel header files..
e.g.
markh@l-034246:~/src/t1$ make FCP=1
make -C usr
make[1]: Entering directory `/home/markh/src/t1/usr'
cc -c -DUSE_SIGNALFD -DFCP -DUSE_KERNEL -D_GNU_SOURCE -I. -g -O2 -Wall
-Wstrict-prototypes -fno-strict-aliasing -fPIC -DTGT_VERSION=\"1.0.6\"
fc/fc.c -o fc/fc.o
cc -c -DUSE_SIGNALFD -DFCP -DUSE_KERNEL -D_GNU_SOURCE -I. -g -O2 -Wall
-Wstrict-prototypes -fno-strict-aliasing -fPIC -DTGT_VERSION=\"1.0.6\"
bs_mmap.c -o bs_mmap.o
cc -c -DUSE_SIGNALFD -DFCP -DUSE_KERNEL -D_GNU_SOURCE -I. -g -O2 -Wall
-Wstrict-prototypes -fno-strict-aliasing -fPIC -DTGT_VERSION=\"1.0.6\"
tgtif.c -o tgtif.o
tgtif.c:39:30: error: scsi/scsi_tgt_if.h: No such file or directory
tgtif.c: In function ‘head_ring_hdr’:
tgtif.c:68: error: invalid application of ‘sizeof’ to incomplete type
‘struct tgt_event’
tgtif.c: In function ‘kreq_send’:
tgtif.c:78: error: dereferencing pointer to incomplete type
[cut]
markh@l-034246:~/src/t1$ find /usr/src/linux-source-2.6.28/ -name
scsi_tgt_if.h -print
/usr/src/linux-source-2.6.28/include/scsi/scsi_tgt_if.h
If it makes any difference: I'm using Ubuntu 9.10..
Any pointers on how to setup tgt with the QLogic HBA once I pass the
'how to compile' stage would also be welcome :)
I'm currently assuming it will be a "tgtadm --lld fcp ...." and that's
all the magic needed.
At the end, I'll post a documentation patch which will most likely be
based on a copy/paste/edit of README.fcoe.
Regards
Mark
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html