• Han-Wen Nienhuys's avatar
    Fix lookupCount handling errors: · 6323032a
    Han-Wen Nienhuys authored
    * Introduce Inode.addLookupCount(), checking for underflow. 
    
    * Increase lookupCount for mounts only once
    
    * If FsNode.Link() returns existing node, increase its lookup count.
    
    * Root node should have lookupCount = 1 at start.
    
    * If we get a Lookup for an existing node, increase its lookup count.
    6323032a
inode.go 5.35 KB