Re: [9fans] walk and find again

2010-02-09 Thread erik quanstrom
> - walkfs can cache/reuse results from previous runs

that is a bad idea.  caching is just going to cause trouble.

> > - no more hassle with space or other special characters in filenames

what?  if the underlying fs doesn't want to do spaces, you
can't force it.

> > - inaccessible parts of the filesystem are just masked out, instead of 
returning errors.

this also seems like a bad idea.

- erik



Re: [9fans] walk and find again

2010-02-09 Thread Georg Lehner

erik quanstrom wrote:
One usage scenario of walkfs is to implement find, du, walk, rdup and 
the like. Another usage [scenario] of walkfs, with the -s option, is to add file 
indexing to a

fileserver.



this seems more complicated than a straightforward
non-fileserver based implementation.  why do you
need a fileserver for this?

- erik

  


- Every three months there need to be a discussion about 'find', right ;)
- walkfs can cache/reuse results from previous runs
- arbitrary filesystem indexing and lookup schemes can be implemented
 without changing the frontend-interface.  Consider mime-type or 
keyword lookup

- no more hassle with space or other special characters in filenames
- inaccessible parts of the filesystem are just masked out, instead of 
returning

 errors.
- ...

frontend tools are simple straightforward rc-scripts, consider:

find:
 get a new walker thread
 write filter to ctl file
 write path to root file
 while !eof {
   path = read data
   do with path whatever has been specified
 }

du -s:
 get a new walker thread
 write path to root file
 write "mode=stat" to the ctl file
 read data (and block until walk is done)
 print count and size


Best Regards,

   Jorge-León




Re: [9fans] walk and find again

2010-02-09 Thread erik quanstrom
> One usage scenario of walkfs is to implement find, du, walk, rdup and 
> the like. Another usage [scenario] of walkfs, with the -s option, is to add 
> file 
> indexing to a
> fileserver.

this seems more complicated than a straightforward
non-fileserver based implementation.  why do you
need a fileserver for this?

- erik