From 89a4a1b8f7f6a7164932c4b8cb6d44b5092fff75 Mon Sep 17 00:00:00 2001 From: Bob Carroll Date: Tue, 24 Sep 2024 18:03:40 -0700 Subject: [PATCH] update man page and fix code style issue --- docs/man/sesman.ini.5.in | 6 ++++++ sesman/chansrv/chansrv_fuse.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/man/sesman.ini.5.in b/docs/man/sesman.ini.5.in index 3495c779..6b45b712 100644 --- a/docs/man/sesman.ini.5.in +++ b/docs/man/sesman.ini.5.in @@ -354,6 +354,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 0b2203d2..64f6364e 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; }