From 0ab987d5a99a02e3b21c4888075fee95e97e4e18 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 12 Apr 2020 21:05:38 +0200 Subject: [PATCH] fuse: set f_namemax in statfs result, fixes #2684 setting it to 255 for now (as seen on Linux / ext4), better than the default 0. the attribute is present since llfuse 1.3.0, which is the minimum requirement currently anyway. --- src/borg/fuse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/borg/fuse.py b/src/borg/fuse.py index 116c7b3e9..46d491c4d 100644 --- a/src/borg/fuse.py +++ b/src/borg/fuse.py @@ -540,6 +540,7 @@ class FuseOperations(llfuse.Operations, FuseBackend): stat_.f_files = 0 stat_.f_ffree = 0 stat_.f_favail = 0 + stat_.f_namemax = 255 # == NAME_MAX (depends on archive source OS / FS) return stat_ def getattr(self, inode, ctx=None):