aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-cgi
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-05-21 19:53:10 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-05-21 21:58:12 +0200
commitbf68b97a59e9b07fd62d3be4f7b2ba2fb3547cd4 (patch)
tree0d8ecd61c92d2f78f247a4014d69dbd313a30f3d /webmap-cgi
parent0e36705046a206e990cad21d9b7891ddeaf47e2d (diff)
webmap-import: Remove option --mvtdir-tmp.
Having a shared temporary directory, flock(2)'ed to avoid races, is a great idea in theory but unfortunately doesn't work so well with systemd.exec(5)'s ReadWritePaths settings since ReadWritePaths=/var/www/webmap/tiles ReadWritePaths=/var/www/webmap/tiles.tmp creates multiple mount points pointing at the same file system and rename(2)/renameat2(2) can't cope with that. Quoting the manual: EXDEV oldpath and newpath are not on the same mounted filesystem. (Linux permits a filesystem to be mounted at multiple points, but rename() does not work across different mount points, even if the same filesystem is mounted on both.) So the options are to either use a single ReadWritePaths=/var/www/webmap, or --mvtdir-tmp=/var/www/webmap/tiles/.tmp. Both kind of defeat the point (we'd in fact want to use --mvtdir-tmp=/var/tmp/webmap/tiles), so we use mkdtemp(3) instead.
Diffstat (limited to 'webmap-cgi')
0 files changed, 0 insertions, 0 deletions