Skip to content
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

Make temp location configurable #117

Open
vondrt4 opened this issue Dec 11, 2014 · 4 comments
Open

Make temp location configurable #117

vondrt4 opened this issue Dec 11, 2014 · 4 comments

Comments

@vondrt4
Copy link

vondrt4 commented Dec 11, 2014

This is more of a wish than a bug.
If someone happens to have /tmp on tmpfs or a full filesystem, they would appreciate an option to specify the temp directory location.
(I personally will revert to the /tmp/gdrivefs hardcoded path from version 0.13 and link it somewhere big. The file where it is defined is gdfs/opened_file.py.)

@dsoprea
Copy link
Owner

dsoprea commented Dec 11, 2014

I leave it to the system (tempfile.mkdtemp()). I don't specify "/tmp",
explicitly.

You would prefer to use a standard filesystem rather than an expanded
tmpfs mount?

Dustin

On Thu, Dec 11, 2014 at 4:54 PM, vondrt4 [email protected] wrote:

This is more of a wish than a bug.
If someone happens to have /tmp on tmpfs or a full filesystem, they would
appreciate an option to specify the temp directory location.
(I personally will revert to the /tmp/gdrivefs hardcoded path from version
0.13 and link it somewhere big. The file where it is defined is
gdfs/opened_file.py.)


Reply to this email directly or view it on GitHub
#117.

@vondrt4
Copy link
Author

vondrt4 commented Dec 12, 2014

From the manual to mkdtemp:
If dir is specified, the file will be created in that directory; otherwise, a default directory is used. The default directory is chosen from a platform-dependent list, but the user of the application can control the directory location by setting the TMPDIR, TEMP or TMP environment variables. There is thus no guarantee that the generated filename will have any nice properties, such as not requiring quoting when passed to external commands via os.popen().

So it actually is configurable. I can run it as
TEMP=/homes gdfstool mount /var/cache/gdfs/credcache /mnt/gdrivefs

It wouldn't work from fstab, though, but I don't use it that way.

@dellipse
Copy link

I also would like to have the temp location configurable. My tempfs is not very large, so it can cause me issues with large objects being stored there. I would rather have that control back like we did before, as an option of course.

@calisro
Copy link

calisro commented Jun 19, 2015

I'll also ask for this. my tmp is on tmpfs and is only 8GB. I wouldnt be able to transfer anything over 8GB here amd likely a lot less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants