summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/xattr_notlinux.go
diff options
context:
space:
mode:
authorbolshevik2018-04-17 20:33:04 +0200
committerrfjakob2018-04-17 20:33:04 +0200
commit12b32aa06c0475d60ee51b3753052ac2e4d09308 (patch)
tree2b880d5e2a96f0992e9ba0fc54df85a6a18969ae /internal/fusefrontend/xattr_notlinux.go
parent12832851c68ce6ba2907b5d5fefc2a5e49f7c36a (diff)
Improved xattr handling on non-linux systems (#227)
* Fixed xattr filtering for MacOS. "system." and "user." prefixes are only relevant for Linux. * Small cleanup and additional tests.
Diffstat (limited to 'internal/fusefrontend/xattr_notlinux.go')
-rw-r--r--internal/fusefrontend/xattr_notlinux.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/fusefrontend/xattr_notlinux.go b/internal/fusefrontend/xattr_notlinux.go
new file mode 100644
index 0000000..aa9c981
--- /dev/null
+++ b/internal/fusefrontend/xattr_notlinux.go
@@ -0,0 +1,8 @@
+// +build !linux
+
+// Package fusefrontend interfaces directly with the go-fuse library.
+package fusefrontend
+
+func disallowedXAttrName(attr string) bool {
+ return false
+}