[OpenAFS] SUN Solaris package for Openafs.

Jeffrey Hutzelman jhutz@cmu.edu
Thu, 08 Apr 2004 13:11:17 -0400


On Thursday, April 08, 2004 12:13:24 -0400 Derek Atkins <warlord@MIT.EDU> 
wrote:

> So if BosConfig says /usr/afs/bin/fileserver, but the
> @afssrvlibexecdir@ is /usr/sbin, it will actually find the program?
> Is "/usr/afs/bin" some magic string in the code?
>
> How would this work is BosConfig was created with version-1 and
> then used with version-2, where @afssrvlibexecdir@ changed
> between versions 1 and 2?


Yes, "/usr/afs/bin" is a magic string.  Particularly, it is
AFSDIR_CANONICAL_SERVER_BIN_DIRPATH.  Any time this appears at the start of 
a path in a bosserver RPC, the server replaces it with 
AFSDIR_SERVER_BIN_DIRPATH.  It also does a number of other 
canonicalizations (/usr/afs/etc, /usr/afs/local, /usr/afs/logs), path 
transformation and so on.  In addition, a number of things which are 
nominally "paths" can actually be given as relative filenames.  So you can 
actually just say

# bos create foobar fs fs fileserver volserver salvager

and get reasonable results.


However, the transformation happens as an RPC is processed; the paths you 
give are not stored in canonical form.  So if AFSDIR_SERVER_BIN_DIRPATH 
changes (i.e. if you compile with a different value), the bosserver will 
not magically adjust its configuration.

-- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
   Sr. Research Systems Programmer
   School of Computer Science - Research Computing Facility
   Carnegie Mellon University - Pittsburgh, PA