Avoided interpreting UTIME_NOW and UTIME_OMIT from external fuse

UTIME_NOW and UTIME_OMIT are needed for implementing utimensat() and
futimens(2), but they cannot yet be used with external fuse.
This patch is to avoid errors if they cannot be used, even with fuse 4.9
This commit is contained in:
Jean-Pierre André 2012-03-21 19:26:00 +01:00
parent 911ecba5e2
commit 1ad9bdad4d

View File

@ -3247,11 +3247,11 @@ static void ntfs_fuse_destroy2(void *unused __attribute__((unused)))
}
static struct fuse_operations ntfs_3g_ops = {
#if defined(HAVE_UTIMENSAT) && (defined(FUSE_INTERNAL) || (FUSE_VERSION > 28))
#if defined(HAVE_UTIMENSAT) && defined(FUSE_INTERNAL)
/*
* Accept UTIME_NOW and UTIME_OMIT in utimens, when
* using internal fuse or a fuse version since 2.9
* (this field is not present in older versions)
* using internal fuse. There is no known way to implement
* this feature on the high fuse interface up to fuse 2.8
*/
.flag_utime_omit_ok = 1,
#endif