From 39384c8a1b2b6f4357f37d1371b3253483791a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Sat, 7 Mar 2020 11:43:49 +0100 Subject: [PATCH] Disabled the use of cache in lowntfs-3g Following some change in the Linux kernel, the kernel cacheing of attributes is not satisfactory (at least the number of hard links is not refreshed), and has to be disabled. --- include/ntfs-3g/param.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/ntfs-3g/param.h b/include/ntfs-3g/param.h index c209c53e..a4c5656b 100644 --- a/include/ntfs-3g/param.h +++ b/include/ntfs-3g/param.h @@ -126,8 +126,8 @@ enum { * 7 : no cache, kernel control for ACLs * * Possible values for low level : - * 2 : no cache, kernel control - * 3 : use kernel/fuse cache, kernel control (recommended) + * 2 : no cache, kernel control (recommended) + * 3 : use kernel/fuse cache, kernel control * 5 : no cache, file system control * 6 : kernel/fuse cache, file system control (OpenIndiana only) * 8 : no cache, kernel control for ACLs @@ -150,9 +150,10 @@ enum { * Cacheing by kernel is buggy on Linux when access control is done * by the file system, and also when using hard-linked files on * the fuse high level interface. + * Also ACL checks by recent kernels do not prove satisfactory. */ #define HPERMSCONFIG 1 -#define LPERMSCONFIG 3 /* Use 9 when ACLs are supported by fuse kernel */ +#define LPERMSCONFIG 2 #endif /* defined(__sun) && defined(__SVR4) */ #endif /* defined _NTFS_PARAM_H */