From cb05a65d8f2e19681a4c14520e9948eef3a128fe Mon Sep 17 00:00:00 2001 From: Nils Werner Date: Thu, 23 Dec 2021 08:40:40 +0100 Subject: [PATCH] Set stats.f_namemax = 256 --- rmfuse/fuse.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rmfuse/fuse.py b/rmfuse/fuse.py index 9c1ffda..eac3340 100644 --- a/rmfuse/fuse.py +++ b/rmfuse/fuse.py @@ -474,6 +474,9 @@ async def statfs(self, ctx=None): # See https://github.com/libfuse/sshfs/commit/db149d1d874ccf044f3ed8d8f980452506b8fb4b stats.f_bsize = stats.f_frsize = 4096 + # Set an arbitrary maximum filename length, otherwise Nautilus cannot create directories + stats.f_namemax = 256 + # Number of blocks. Some examples set to 0, others to large numbers. stats.f_blocks = stats.f_bfree = stats.f_bavail = 2**32 / stats.f_frsize