Closed oliomin closed 6 months ago
Thanks for opening a PR! I tested this out locally and your change seems to have the desired behavior. I'll note this is also an issue in the tmpfs.py example I based this on from pyfuse3 so you may want to consider opening a similar PR there as well!
Consider the following contents table entry:
Now if I try to delete one of the links, say hardlink_to_myfile, then the operation fails because entry.st_nlink > 1 and the conditional at line 249 in fuse_impl.py is never reached. So, I propose to add another conditional at entry.st_nlink > 1 where only the dentry is deleted.