From 8b4e66c23b98cc1464780fb6d87c11cb4237c465 Mon Sep 17 00:00:00 2001 From: szaka Date: Thu, 22 Jan 2009 01:01:04 +0000 Subject: [PATCH] change: support the "user." extended attributes namespace by default on Linux --- src/ntfs-3g.8.in | 2 +- src/ntfs-3g.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ntfs-3g.8.in b/src/ntfs-3g.8.in index b6a49fe0..c398a0c1 100644 --- a/src/ntfs-3g.8.in +++ b/src/ntfs-3g.8.in @@ -167,7 +167,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. .TP .B debug Makes ntfs-3g to not detach from terminal and print a lot of debug output from diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index a7b2e579..f5586508 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -1678,7 +1678,11 @@ static int ntfs_fuse_init(void) *ctx = (ntfs_fuse_context_t) { .uid = getuid(), .gid = getgid(), - .streams = NF_STREAMS_INTERFACE_NONE, +#if defined(linux) + .streams = NF_STREAMS_INTERFACE_XATTR, +#else + .streams = NF_STREAMS_INTERFACE_NONE, +#endif }; return 0; }