diff --git a/docs/man/sesman.ini.5.in b/docs/man/sesman.ini.5.in index d2ca98324b..5e7ed2029d 100644 --- a/docs/man/sesman.ini.5.in +++ b/docs/man/sesman.ini.5.in @@ -353,6 +353,12 @@ the user). drive. To fix this, consult the docs for your chosen desktop. .RE +.TP +\fBFuseDirectIO\fR=\fI[false|true]\fR +Defaults to \fIfalse\fR. Set to \fItrue\fR to disable page caching in +FUSE when opening files on a redirected drive. Direct I/O can impact +the performance of file operations. + .TP \fBFileUmask\fR=\fImode\fR Additional umask to apply to files in the \fBFuseMountName\fR directory. diff --git a/sesman/chansrv/chansrv_fuse.c b/sesman/chansrv/chansrv_fuse.c index ce09dfb4a4..d8a2c17919 100644 --- a/sesman/chansrv/chansrv_fuse.c +++ b/sesman/chansrv/chansrv_fuse.c @@ -2200,7 +2200,8 @@ static void xfuse_cb_open(fuse_req_t req, fuse_ino_t ino, fip->fi = *fi; fip->inum = ino; - if (g_cfg->fuse_direct_io) { + if (g_cfg->fuse_direct_io) + { fip->fi.direct_io = 1; }