From c0eb121a7bdb6e9edf7fb97add80a57bff1feb5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 22 May 2018 17:31:46 +0200 Subject: vis: add loadmethod option Valid values are `read`, `mmap` or `auto`. --- man/vis.1 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'man') diff --git a/man/vis.1 b/man/vis.1 index 556f445..40f2432 100644 --- a/man/vis.1 +++ b/man/vis.1 @@ -1398,6 +1398,17 @@ which tries the former before falling back to the latter. The rename method fails for symlinks, hardlinks, in case of insufficient directory permissions or when either the file owner, group, POSIX ACL or SELinux labels can not be restored. +.It Cm loadmethod Op Ar auto +How existing files should be loaded, +.Ar read +which copies the file content to an independent in-memory buffer, +.Ar mmap +which memory maps the file from disk and uses OS capabilities as +caching layer or +.Ar auto +which tries the former for files smaller than 8Mb and the latter for +lager ones. WARNING: modifying a memory mapped file in-place will +cause data loss. .El . .Sh COMMAND and SEARCH PROMPT -- cgit v1.2.3