Ref T13167. I'd like to buffer a specific large file (a large database export) to a large volume, instead of to "/tmp" on the root volume.
To support this, let callers optionally choose which directory to use as "/tmp". If they don't specfify, we continue using sys_get_temp_dir(), often /tmp.