quadrapus# !! iscsi-target -D Reading configuration from `/etc/iscsi/targets' target0:rw:128.233.110.46/32 extent0:/u1/iscsi/iscsi-target0:0:4194304000 target1:rw:128.233.111.15/32 extent1:/u1/iscsi/iscsi-target1:0:104857600 lun0:rw:128.233.110.46/32 extent2:/u1/iscsi/iscsi-target2:0:157286400 lun1:rw:128.233.111.15/32 extent3:/u1/iscsi/iscsi-target3:0:209715200 pid 21194:/u1/builds/build163/src/dist/iscsi/src/util.c:110: iscsi_malloc_atomic(128) = 0x7f7ffd624080 tvp is 0x7f7fffffe6b0 DISK: 1 logical unit (8192000 blocks, 512 bytes/block), type iscsi fs DISK: LUN 0: Extent open on /u1/iscsi/iscsi-target0 xp->fd is 0 Extent read to xp->fd=3 Extent write to xp->fd=3 4000 MB disk storage for "target0" disks set to: 0 3 tvp is 0x7f7fffffe6b0 DISK: 1 logical unit (204800 blocks, 512 bytes/block), type iscsi fs DISK: LUN 0: Extent open on /u1/iscsi/iscsi-target1 xp->fd is 0 Extent read to xp->fd=4 Extent write to xp->fd=4 100 MB disk storage for "target1" disks set to: 0 3 tvp is 0x7f7fffffe6b0 DISK: 1 logical unit (307200 blocks, 512 bytes/block), type iscsi fs DISK: LUN 0: Extent open on /u1/iscsi/iscsi-target2 xp->fd is 0 Extent read to xp->fd=5 Extent write to xp->fd=5 150 MB disk storage for "lun0" disks set to: 0 3 tvp is 0x7f7fffffe6b0 DISK: 1 logical unit (409600 blocks, 512 bytes/block), type iscsi fs DISK: LUN 0: Extent open on /u1/iscsi/iscsi-target3 xp->fd is 0 Extent read to xp->fd=6 Extent write to xp->fd=6 200 MB disk storage for "lun1" disks set to: 0 3 TARGET: TargetName is iqn.1994-04.org.netbsd.iscsi-target pid 21194:/u1/builds/build163/src/dist/iscsi/src/target.c:1649: listener thread started *********SOCKET BOUND TO 7 on 0 *********SOCKET BOUND TO 8 on 1 pid 21194:/u1/builds/build163/src/dist/iscsi/src/target.c:1657: create, bind, listen OK Socket on 0 waiting for connection [23:00] if I do a: lun=sess->d; [23:01] at the beginning of device_read() and device_write(), then it