On Thursday 14 August 2014 18:11:29 Andrew Deason wrote:
> On Thu, 14 Aug 2014 10:06:31 +0200
> Markus Koeberl <[email protected]> wrote:
> 
> > On Thursday 14 August 2014 05:26:36 Andrew Deason wrote:
> > > This generally sounds reasonable to me. But I think you want to just
> > > require a dot if the name doesn't exist in the csdb at all, so you
> > > can just put it in the local csdb if you want to use it, without
> > > needing to alias it to a full cell name. (This may have been
> > > mentioned earlier, but I don't see it here.) I'd call such an option
> > > -afsdb-ndots, which would set the minimum number of dots (like
> > > resolv.conf's "option ndots").
> > 
> > This would require changing the format of the CellServDB or did I get
> > something wrong?
> 
> You can have a csdb entry that just lists a cell and doesn't list
> servers for it. Unless there's something else I said that sounded like
> changing the format...?

OK I got confused because in the csdb are domains and I was thinking of a case 
where there is no dot included.
Did you mean something like this:

$ test -d /afs/.git

1. first look if "git" is in csdb -> no match
2. add the search domain and look if it is in the csdb ("git.spsc.tugraz.at", 
"git.tugraz.at" -> both no match)
3. test if there are enough dots ("git" -> no match)
4. therefore not query the nameserver

$ test -d /afs/openafs.org

1. first look if "openafs.org" is in csdb -> no match
2. add the search domain and look if it is in the csdb 
("openafs.org.spsc.tugraz.at", "openafs.org.tugraz.at" -> both no match)
3. test if there are enough dots ("git" -> match)
4. query the nameserver for "openafs.org"


> > > A blacklist might help for a vast majority of cases, though. Or of
> > > course we could just improve the caching, so only the first lookup is
> > > slow... would that be good enough, if done "well"?
> > 
> > A improved caching would be very nice for the bash completion.
> 
> What I was trying to get at is "which is _more_ useful"? (Improved
> caching, or a blacklist/whitelist.) Or if the answer is "either one
> would make me happy", that would be good to know.

If I got it right now this would be a big win.
It will not help with bash completion for some cases e.g openafs.o + Tab. 
Improved caching would help here because I think that people always write the 
same number of chars before they press the Tab key. So hanging bash completion 
should not be that big problem.


regards
Markus Köberl
-- 
Markus Koeberl
Graz University of Technology
Signal Processing and Speech Communication Laboratory
E-mail: [email protected]

Reply via email to