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
edge.strict_endians
Jean-Pierre André 2012-08-20 14:24:49 +02:00
parent f61aaf012c
commit fa158031f2
1 changed files with 3 additions and 3 deletions

View File

@ -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