[OpenAFS-devel] Keeping track of vcaches/vnodes
   
    Dale Ghent
     
    daleg@umbc.edu
       
    Fri, 9 Feb 2007 19:28:29 -0500
    
    
  
In my further study (ha!) of the Solaris client driver, I noticed  
that the vfs unmount call unconditionally says "yo'kay" to umount  
requests for /afs... which is alright if the /afs mount is quiescent  
and no vnodes are referenced. But if there are, your machine is in  
panicville.
So I'm putting some safety in afs_unmount() and trying to figure out  
how best to determine when returning EBUSY is appropriate.
Would I be correct in thinking that the most straight-forward  
approach is to take the passed vfs struct that was passed in, get the  
vnode it references, and see if v_count member is > 0 ?
Then there's the question of supporting forced unmounts... Are there  
any good interfaces to call to invalidate all vcache/vnodes ?
/dale
--
Dale Ghent
UNIX Systems Specialist
UMBC - Office of Information Technology
ECS 201 - x51705