• wanglei's avatar
    AFS: Implement an autocell mount capability [ver #2] · bec5eb61
    wanglei authored
    Implement the ability for the root directory of a mounted AFS filesystem to
    accept lookups of arbitrary directory names, to interpet the names as the names
    of cells, to look the cell names up in the DNS for AFSDB records and to mount
    the root.cell volume of the nominated cell on the pseudo-directory created by
    lookup.
    
    This facility is requested by passing:
    
    	-o autocell
    
    to the mountpoint for which this is desired, usually the /afs mount.
    
    To use this facility, a DNS upcall program is required for AFSDB records.  This
    can be obtained from:
    
    	http://people.redhat.com/~dhowells/afs/dns.afsdb.c
    
    It should be compiled with -lresolv and -lkeyutils and installed as, say:
    
    	/usr/sbin/dns.afsdb
    
    Then the following line needs to be added to /sbin/request-key.conf:
    
    	create	dns_resolver afsdb:*	*	/usr/sbin/dns.afsdb %k
    
    This can be tested by mounting AFS, say:
    
    	insmod dns_resolver.ko
    	insmod af-rxrpc.ko
    	insmod kafs.ko rootcell=grand.central.org
    	mount -t afs "#grand.central.org:root.cell." /afs -o autocell
    
    and doing:
    
    	ls /afs/grand.central.org/
    
    which should show:
    
    	archive/  cvs/  doc/  local/  project/  service/  software/  user/  www/
    
    if it works.
    Signed-off-by: default avatarWang Lei <wang840925@gmail.com>
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
    bec5eb61
mntpt.c 7.46 KB