[OpenAFS] File searching in openafs space

Derrick J Brashear shadow@dementia.org
Mon, 20 Jun 2005 08:20:16 -0400 (EDT)

On Mon, 20 Jun 2005, Christophe BERNARD wrote:

> I was wondering if there exists a tool like slocate which can run on openafs 
> partitions.

If you mean directly on the fileserver, none exists, but it would be 
possible to write one which works on a namei fileserver (such as linux 
has) provided you are willing to:
1) decode the path to a volume and vnode
2) find vnode 1 and parse the afs directory object for either this vnode, 
or subdirectories, recursing down subdirectories until you find it (well, 
this is the simplest matter to code, you need to steal the directory 
object parsing)
3) either look up volume ids to get simply a volume name, or look up all 
mountpoints and keep a database so relative information can be used to 
answer a path lookup by starting at the top.