support older libfuse without utime_omit_ok flag

This commit is contained in:
Antonio SJ Musumeci 2017-04-11 09:23:40 -04:00
parent 1a1fa06aa3
commit 8b976ab3c1
2 changed files with 5 additions and 1 deletions

View file

@ -71,11 +71,13 @@ namespace local
get_fuse_operations(struct fuse_operations &ops,
const bool direct_io)
{
ops.flag_nullpath_ok = false;
#if FLAG_NOPATH
ops.flag_nopath = false;
#endif
ops.flag_nullpath_ok = false;
#if FLAG_UTIME
ops.flag_utime_omit_ok = true;
#endif
ops.access = mergerfs::fuse::access;
ops.bmap = NULL;