• David Howells's avatar
    [PATCH] kAFS automount support · d1718e93
    David Howells authored
    Here's a patch to allow the kAFS filesystem to use the automount facility
    patch presented in a previous email.
    
    It allows me to mount an AFS root volume on /afs and then just walk through
    the directory structure causing referenced volumes to be automounted and
    autoumounted.
    
    For instance, if I do:
    
    	[root@andromeda root]# mount -t afs \#root.afs. /afs
    	[root@andromeda root]# ls /afs
    	asd  cambridge  cambridge.redhat.com  grand.central.org
    	[root@andromeda root]# ls /afs/cambridge
    	afsdoc
    	[root@andromeda root]# ls /afs/cambridge/afsdoc/
    	ChangeLog  html  LICENSE  pdf  RELNOTES-1.2.2
    
    And then look in the mountpoint catalogue, I see:
    
    	[root@andromeda root]# cat /proc/mounts
    	...
    	#root.afs. /afs afs rw 0 0
    	#root.cell. /afs/cambridge.redhat.com afs rw 0 0
    	#afsdoc. /afs/cambridge.redhat.com/afsdoc afs rw 0 0
    
    Then after waiting a few minutes:
    
    	[root@andromeda root]# cat /proc/mounts
    	...
    	#root.afs. /afs afs rw 0 0
    
    Is all that remains.
    Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    d1718e93
cmservice.c 14.5 KB