packages/net/cgi-io
Jo-Philipp Wich 4f4a7e9532 cgi-io: use O_TMPFILE for uploads and attempt to directly link target file
Create an anonymous inode in /tmp using O_TMPFILE and attempt to link the
file in place using linkat(). Only fall back to the old file copy when
linking the tempfile fails.

Avoids double memory use if both the temporary upload file and the
destination file are located in /tmp.

Ref: https://github.com/openwrt/luci/issues/3654
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-22 18:17:33 +01:00
..
src cgi-io: use O_TMPFILE for uploads and attempt to directly link target file 2020-02-22 18:17:33 +01:00
Makefile cgi-io: use O_TMPFILE for uploads and attempt to directly link target file 2020-02-22 18:17:33 +01:00