>>> Chris Leech <[email protected]> schrieb am 19.02.2016 um 23:42 in Nachricht
<[email protected]>:
> I was asked an interesting question recently, and thought I'd share it
> here. I don't think it's critical to address right away, but surprising
> and something to think about.
> 
> Someone asked me about targets configured to return DNS names rather
> than IP addresses in a SendTargets response, and what the maximum length
> of a response Open-iSCSI would accept was. Obviously they had tested
> this and hit an issue or they wouldn't be asking.
> 
> It turns out that DNS names have a limit of 253 octets when converted to
> a string. When we store a node record we append the port and tpgt as
> part of the filename. That potentially takes up to 12 characters, two
> 16-bit values that might need 5 chars each + 2 commas. Basically all
> Linux filesystems have a 255 byte filename limit, so any DNS name of
> longer than 243 bytes (10 less than the DNS limit) will fail to create a
> node record.

IFF you use the host name for the record directly; if you'd hash the host name 
(MD5 oder so), the length wouldn't matter. Listing all the host names is a bit 
tricky, however.

> 
> The discovery symlinks are much worse, as we try and put the target
> name, address, port, tpgt, and iface name all together.

Something completely different: What about replacing the complex directory and 
file structure with a real database like sqlite?

Regards,
Ulrich

> 
> - Chris
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to