I wonder why the special lock handling was needed for deleting - couldn't a node holding a file open just create a link to it in the // system file area? Then you can just have the normal "if you're removing the last link, delete it" behaviour.
Posted Sep 17, 2010 18:19 UTC (Fri) by sniper (subscriber, #13219)
[Link]
How do you know that last link? The fs does not maintain a cluster-wise usage count. Too expensive. Also, one has to account for node crashes. What if the node that had the possible last link dies?