GDriveFS icon indicating copy to clipboard operation
GDriveFS copied to clipboard

Make temp location configurable

Open vondrt4 opened this issue 10 years ago • 4 comments

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.)

vondrt4 avatar Dec 11 '14 21:12 vondrt4

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 https://github.com/dsoprea/GDriveFS/issues/117.

dsoprea avatar Dec 11 '14 22:12 dsoprea

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.

vondrt4 avatar Dec 12 '14 08:12 vondrt4

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.

dellipse avatar Jan 27 '15 06:01 dellipse

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.

calisro avatar Jun 19 '15 10:06 calisro