From a682c3662532a80f37081abb7132b36c6c90c929 Mon Sep 17 00:00:00 2001 From: szaka Date: Wed, 11 Feb 2009 21:38:49 +0000 Subject: [PATCH] change: support the "user." extended attribute namespace by default on Linux --- src/ntfs-3g.8.in | 2 +- src/ntfs-3g.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ntfs-3g.8.in b/src/ntfs-3g.8.in index 3cf5af1f..532510e3 100644 --- a/src/ntfs-3g.8.in +++ b/src/ntfs-3g.8.in @@ -175,7 +175,7 @@ to, one of \fBnone\fR, \fBwindows\fR or \fBxattr\fR. If the option is set to to \fBwindows\fR, then the user can access them just like in Windows (eg. cat file:stream). If it's set to \fBxattr\fR, then the named data streams are mapped to xattrs and user can manipulate them using \fB{get,set}fattr\fR -utilities. The default is \fBnone\fR. +utilities. The default is \fBxattr\fR on Linux, \fBnone\fR on other OSes. .TP .B force This mount option is not used anymore. It was superseded by the diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 81924f11..f1b493af 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -1702,7 +1702,11 @@ static int ntfs_fuse_init(void) *ctx = (ntfs_fuse_context_t) { .uid = getuid(), .gid = getgid(), +#if defined(linux) + .streams = NF_STREAMS_INTERFACE_XATTR, +#else .streams = NF_STREAMS_INTERFACE_NONE, +#endif .atime = ATIME_RELATIVE, .silent = TRUE, .recover = TRUE