Change default xattr access method to 'openxattr' for macOS builds.

The namespaced way of accessing extended attributes doesn't make sense
in macOS which doesn't use namespaces.
pull/2/head
Erik Larsson 2020-08-25 11:29:42 +03:00
parent 1511a5ca51
commit 903db231ec
1 changed files with 7 additions and 0 deletions

View File

@ -427,7 +427,14 @@ char *parse_mount_options(ntfs_fuse_context_t *ctx,
}
break;
case OPT_USER_XATTR :
#if defined(__APPLE__) || defined(__DARWIN__)
/* macOS builds use non-namespaced extended
* attributes by default since it matches the
* standard behaviour of macOS filesystems. */
ctx->streams = NF_STREAMS_INTERFACE_OPENXATTR;
#else
ctx->streams = NF_STREAMS_INTERFACE_XATTR;
#endif
break;
case OPT_NOAUTO :
/* Don't pass noauto option to fuse. */