aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/xattr.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-11-04 22:31:55 +0100
committerJakob Unterwurzacher2019-01-01 16:24:25 +0100
commitd4b7f42c3bb734aec207d10f4addf56e0b59fee2 (patch)
treef38223239cb2f38f6b63634242907966e0688a21 /internal/fusefrontend/xattr.go
parent436f918c21a0858c769e1bf7d86502a05132b4e7 (diff)
fusefrontend: mark Truncate, Unlink, Symlink symlink-safe
No changes needed.
Diffstat (limited to 'internal/fusefrontend/xattr.go')
-rw-r--r--internal/fusefrontend/xattr.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/fusefrontend/xattr.go b/internal/fusefrontend/xattr.go
index a0f795a..74b3790 100644
--- a/internal/fusefrontend/xattr.go
+++ b/internal/fusefrontend/xattr.go
@@ -50,7 +50,10 @@ func (fs *FS) GetXAttr(path string, attr string, context *fuse.Context) ([]byte,
return data, fuse.OK
}
-// SetXAttr implements pathfs.Filesystem.
+// SetXAttr - FUSE call.
+//
+// TODO: Make symlink-safe. Currently blocked because the xattr package does
+// not provide fsetxattr.
func (fs *FS) SetXAttr(path string, attr string, data []byte, flags int, context *fuse.Context) fuse.Status {
if fs.isFiltered(path) {
return fuse.EPERM