]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Introduce astcachedir, to be used for temporary bucket files
authorlvl <digium@lvlconsultancy.nl>
Thu, 29 Oct 2020 11:25:27 +0000 (12:25 +0100)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 9 Dec 2020 19:06:04 +0000 (13:06 -0600)
commit92fcd4edba66178d94ff228fc16872293d0fde23
treefdf32d4dad25517a47e2d279007ca6dd9993395e
parentf39d5ea7cdd142ea8782d690022a1415c9b2411b
Introduce astcachedir, to be used for temporary bucket files

As described in the issue, /tmp is not a suitable location for a
large amount of cached media files, since most distributions make
/tmp a RAM-based tmpfs mount with limited capacity.

I opted for a location that can be configured separately, as opposed
to using a subdirectory of spooldir, given the different storage
profile (transient files vs files that might stay there indefinitely).

This commit just makes the cache directory configurable, but leaves
it at /tmp by default, to ensure backwards compatibility.

A future commit that only targets master could change the default
location to something more sensible such as /var/tmp/asterisk. At
that point, the cachedir could be created and cleaned up during
uninstall by the Makefile script.

ASTERISK-29143

Change-Id: Ic54e95199405abacd9e509cef5f08fa14c510b5d
13 files changed:
Makefile
build_tools/install_subst
build_tools/make_defaults_h
build_tools/mkpkgconfig
configs/samples/asterisk.conf.sample
configure
configure.ac
doc/CHANGES-staging/media_cache_cachedir.txt [new file with mode: 0644]
include/asterisk/paths.h
main/bucket.c
main/options.c
main/pbx_variables.c
makeopts.in