9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ndb database= question.
@ 2009-01-01 23:31 erik quanstrom
  2009-01-02  3:46 ` lucio
  0 siblings, 1 reply; 2+ messages in thread
From: erik quanstrom @ 2009-01-01 23:31 UTC (permalink / raw)
  To: 9fans

there are a couple of cases where the database= lines in ndb
files don't appear to me to work as one would expect.

ndbsearch(2) searches the original file and all the files in
the database= lines.  however ndbparse(2) opens only the
named file; ndbreopen(2) only reopens the named file.

so, e.g., consolefs(4) won'trecognize databases= lines at
all.  ndb search has special magic to take care of this so
cs(8) wouldn't have this problem.

so i would think either consolefs or ndbparse would
have to be at fault.

- erik




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] ndb database= question.
  2009-01-01 23:31 [9fans] ndb database= question erik quanstrom
@ 2009-01-02  3:46 ` lucio
  0 siblings, 0 replies; 2+ messages in thread
From: lucio @ 2009-01-02  3:46 UTC (permalink / raw)
  To: 9fans

> ndbsearch(2) searches the original file and all the files in
> the database= lines.  however ndbparse(2) opens only the
> named file; ndbreopen(2) only reopens the named file.

It may be that you want to limit the search to a single database
element and then there is no way to do it.  The database= idea is
good, but it seems hard to use it consistently.  Of course, that's my
opinion, the real reason may be completely different.

++L




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-02  3:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-01 23:31 [9fans] ndb database= question erik quanstrom
2009-01-02  3:46 ` lucio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).