From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Sun, 8 Jul 2007 10:50:21 -0400 To: 9fans@cse.psu.edu Subject: Re: [9fans] (no subject) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 937aca38-ead2-11e9-9d60-3106f5b1d025 in this case "net!somehost!9fs" could be translated il!somehost!9fs or tcp!somehost!9fs. the current algorithm is to look through the possibities and see if there exists somehost on protocol $protocol for service 9fs. the first match wins. this depends on the order in the table. the current algorithm doesn't check to see if any servers were found. it wouldn't be hard to change things so that the first /available/ server is used. it's a one line change, in fact. /sys/src/cmd/ndb/cs.c:1182 - /usr/quanstro/dist/sys/src/cmd/ndb/cs.c - if(rv > 0) - break; + break; the downside to this is that the behavior of "net" becomes more dependent on configuration. but Nilfast did the same thing. so i don't think this really changes anything. the one reservation i have is i don't know why the the code didn't loop. the first version in sourcesdump also has the break. dial(2) seems to argue against the break. Network is any directory listed in /net or the special token, net. Net is a free variable that stands for any net- work in common between the source and the host netaddr. so i would think the test for responses should go in. - erik