From fa158031f2564a23a7afe3fa383d194036107039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 20 Aug 2012 14:24:49 +0200 Subject: [PATCH] Restored interpreting UTIME_NOW and UTIME_OMIT from external fuse >= 2.9 Use of UTIME_NOW and UTIME_OMIT had been temporarily removed when using external fuse, because early versions of external fuse 2.9 did not support them. They can now be restored as they are supported by released versions of fuse 2.9 --- src/ntfs-3g.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index b2c2bb36..f9de0a3c 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -3286,11 +3286,11 @@ static void ntfs_fuse_destroy2(void *unused __attribute__((unused))) } static struct fuse_operations ntfs_3g_ops = { -#if defined(HAVE_UTIMENSAT) && defined(FUSE_INTERNAL) +#if defined(HAVE_UTIMENSAT) && (defined(FUSE_INTERNAL) || (FUSE_VERSION > 28)) /* * Accept UTIME_NOW and UTIME_OMIT in utimens, when - * using internal fuse. There is no known way to implement - * this feature on the high fuse interface up to fuse 2.8 + * using internal fuse or a fuse version since 2.9 + * (this field is not present in older versions) */ .flag_utime_omit_ok = 1, #endif