From e1a9050c61bba5b51e21dbf8e80020c5c1d7c9ba Mon Sep 17 00:00:00 2001 From: sunwire <50745572+sunwire@users.noreply.github.com> Date: Sat, 19 Oct 2019 20:26:10 +0100 Subject: Added direct_io option (#173) --- sshfs.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sshfs.rst') diff --git a/sshfs.rst b/sshfs.rst index 1446555..41b4787 100644 --- a/sshfs.rst +++ b/sshfs.rst @@ -202,6 +202,17 @@ Options sets the interval for forced cleaning of the directory cache when full. +-o direct_io + This option disables the use of page cache (file content cache) in + the kernel for this filesystem. + This has several affects: + 1. Each read() or write() system call will initiate one or more read or + write operations, data will not be cached in the kernel. + 2. The return value of the read() and write() system calls will correspond + to the return values of the read and write operations. This is useful + for example if the file size is not known in advance (before reading it). + e.g. /proc filesystem + In addition, SSHFS accepts several options common to all FUSE file systems. These are described in the `mount.fuse` manpage (look for "general", "libfuse specific", and "high-level API" options). -- cgit v1.2.3