Comment 5 for bug 799157

Revision history for this message
Sergio Mena (sergio-mena) wrote :

Hi Tyler,

I agree with you on the problems that my script has with hard links: the name returned by the script may not be the correct one (although the contents ARE the same, and can be read-written without any problem). Only problem I see is if you erase the directory entry, then you might end up erasing the wrong one.

In short: I agree that using the i-node is a quick and dirty way to solve the problem (but that's the way I went about it not having any background knowledge on how filename encryption works in ecryptfs). So, I understand your concerns about the fact that some users might be disappointed with the side-effects it involves.

What I am afraid I don't agree with is the "stat" and "fjnd" solution that you suggest: this solution greatly underperforms, as find will search THE WHOLE directory structure. Then, if you limit the depth of the search, then your script will start looking more and more like mine :-)

Thanks

Sergio