From e5ee8b325c8fd3b931c2b4e3d840c53626bbf876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Fri, 5 Mar 2021 10:05:24 +0100 Subject: [PATCH] Signalled support of UTIME_OMIT to external libfuse2 The external libfuse2 optionally uses UTIME_OMIT to tell whether mtime or ctime should not be changed in a utimensat(2) call. Set the flag flag_utime_omit_ok so that it knows that ntfs-3g supports this feature. Note : this is the default with internal libfuse and with libfuse3. --- src/ntfs-3g.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 6ec2020a..3494952c 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -3965,6 +3965,9 @@ static struct fuse_operations ntfs_3g_ops = { .rmdir = ntfs_fuse_rmdir, #ifdef HAVE_UTIMENSAT .utimens = ntfs_fuse_utimens, +#if defined(linux) & !defined(FUSE_INTERNAL) & (FUSE_VERSION < 30) + .flag_utime_omit_ok = 1, +#endif /* defined(linux) & !defined(FUSE_INTERNAL) */ #else .utime = ntfs_fuse_utime, #endif