Jim I think the truncated TargetName you are seeing is because of a buffer size limit in Sun's iscsi target 'debug' code. The output from DTrace is just showing this limit.
Take a look in 'util.c' at line 329: http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/iscsi/iscsitgtd/util.c ..where we have this print format string: "CON%x %24s = %s\n", c->c_num, "TargetName", So by my counting, that uses 35 character of the buffer, before you output the TargetName and the '\n'. Also take a look in 'util_queue.c" at line 327: http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/iscsi/iscsitgtd/util_queue.c ..where the buffer size is set to 80 bytes. So 80 minus 35 leaves only 45 for the Target name And presumably 1 byte for a zero to terminate the string. CON1 TargetName = iqn.1986-03.com.sun:02:25515cb7-069d-e4a2-c7 123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789. (best viewed with a fixed-patch font!) (I am a novice at the C-language, so I may have got that wrong, but maybe someone will enlighten me, if I have got that wrong.) So Jim, I think ideally that buffer needs to be a little larger to avoid this confusion over truncated TargetNames. Maybe this need a bug/RFE entering in the database.. Best Regards Nigel Smith -- This message posted from opensolaris.org _______________________________________________ storage-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/storage-discuss
