VertebrateResequencing / muxfys

High performance multiplexed user fuse mounting
GNU General Public License v3.0
19 stars 2 forks source link

cache dir cleanup fails on nfs #1

Open sb10 opened 7 years ago

sb10 commented 7 years ago

When CacheBase is on an nfs mount, created cache dirs get left behind due to the RemoveAll in remote.deleteCache() failing with errors like .nfs0000000000b681f500000fb3: device or resource busy.

This seems to be related to github.com/alexflint/go-filemutex not closing its files on Unlock().

However, if altered to close on Unlock, the error becomes the even stranger: "directory not empty" (the directory in question containing an .nfs0000... file). Doing a rm -fr afterwards still gives a "Device or resource busy" error on the .nfs file.

I could not duplicate the latter problem with a direct test on go-filemutex.

Immediately after the go code exits, rm -fr works fine to delete the cache dir.