New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporary files are not removed from cache #89
Comments
I'm still not sure why the cached file on the temp folders are not removed when uploaded? Is there a specific reason? |
I have searched in the code base and could not find any line of code that
|
same on my side on my Qnap, i have to move the temp file in .hubicfuse file on user space to not fill up ramdisk. and temp files are staying in this directory not removed |
Can you describe what are the steps to reproduce? I cannot find a single hubic temp file on my systems... And where temps files are stored for you when nothing defined in .hubicfuse (default setting)? |
My Linux box is booting on a 8 GB USB stick, with 200 MB allocated for /tmp (tmpfs in RAM). After that I added a temp folder in .hubicfuse pointing to a temp folder on a larger hard drive. I can see the accessed files being added on that folder with the .cloudfusexxx naming. |
Did some testing to reproduce the issue. By default if no custom temp file is set hubicfuse creates a temp file using this system function: http://linux.die.net/man/3/tmpfile. "The tmpfile() function opens a unique temporary file in binary read/write (w+b) mode. The file will be automatically deleted when it is closed or the program terminates." I think these files are not visible in /tmp folder but they will eat space. I have implemented a fix when using a custom temp folder, is located in my work in progress branch (https://github.com/dan-cristian/hubicfuse/tree/utime). I'm doing some stress testing now and will let you know when is stable enough. |
After running several tests it seems this is stable enough with the version in my master branch: https://github.com/dan-cristian/hubicfuse |
After uploading a large amount of files I run out of local disk space and hubicfuse will crash.
I realised the problem is that hubicfuse does not delete the cached files stored on the temp folder.
Is there a local cache file delete function already implemented?
The text was updated successfully, but these errors were encountered: