aboutsummaryrefslogtreecommitdiff
path: root/man/vis.1
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-05-22 17:31:46 +0200
committerMarc André Tanner <mat@brain-dump.org>2018-05-30 16:27:45 +0200
commitc0eb121a7bdb6e9edf7fb97add80a57bff1feb5b (patch)
tree354a0b1d8c7774c8e912ab08b46bb13ed83c95a1 /man/vis.1
parentd9b8f7bda83e746617ce1001972ba255ffdebed7 (diff)
downloadvis-c0eb121a7bdb6e9edf7fb97add80a57bff1feb5b.tar.gz
vis-c0eb121a7bdb6e9edf7fb97add80a57bff1feb5b.tar.xz
vis: add loadmethod option
Valid values are `read`, `mmap` or `auto`.
Diffstat (limited to 'man/vis.1')
-rw-r--r--man/vis.111
1 files changed, 11 insertions, 0 deletions
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