redbo / cloudfuse

Filesystem (fuse) implemented on Mosso's Cloud Files
http://redbo.github.com/cloudfuse/
MIT License
391 stars 114 forks source link

change /tmp location #48

Open bocomrx opened 11 years ago

bocomrx commented 11 years ago

I would like to cache files anywhere else but /tmp I'm speaking of course about the temporary space cloudfuse uses to store files before the actual transfer. Since im using "secure temp" on my cpnael system it is limited in size, in this case 2 GB, so im limited to storing files no bigger than 2GB which is a big limitation.

To solve this I've tried changing the tmpdir= in install-sh to this: tmpdir=/fusetmp/ins$RANDOM-$$

but still, nothing was changed.

is there a configuration option im missing?

geraldcombs commented 11 years ago

Have you tried setting TMPDIR before you run cloudfuse?

bocomrx commented 11 years ago

i'm mounting from fstab, so i dont see how i can affect TMPDIR before its being mounted.

redbo commented 11 years ago

hmm... one workaround would be to just write a simple wrapper script like: TMPDIR=/fusetmp/whatevs cloudfuse $@

and then reference that script in fstab

J-Wick4 commented 11 years ago

Could you please give a clearer example for non-savy admins on the following?

1) Setting TMPDIR manually at the CLI. 2) Setting up fstab properly.

XGhozt commented 10 years ago

Has anyone had any success with this? cloudfuse is causing my /tmp directory to fill up periodically for up to 15 minutes at a time.