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.
pull/2/head
Jean-Pierre André 2021-03-05 10:05:24 +01:00
parent dd75ea7420
commit e5ee8b325c
1 changed files with 3 additions and 0 deletions

View File

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