[GRASS-dev] r65348 (GRASS_TMPDIR_MAPSET)

Martin Landa landa.martin at gmail.com
Wed Jun 3 10:46:56 PDT 2015


Hi,

2015-06-03 15:55 GMT+02:00 Glynn Clements <glynn at gclements.plus.com>:
> Maybe I'm overlooking something, but this change appears to violate
> the requirement that the file created by G_tempfile() is on the same
> filesystem (partition) as the mapset directory.

right, see [1,2].

> Certain files (e.g. the cell/fcell files for rasters) are created via
> G_tempfile() then atomically moved into place with rename(), which
> requires that both source and destintion to be on the same
> filesystem).

I have updated G_rename_file() to deal with it [3], do you prefer
another solution?

Martin

[1] https://trac.osgeo.org/grass/ticket/2185
[2] https://github.com/imincik/gis-lab/issues/356
[3] https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/rename.c#L32


-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the grass-dev mailing list