aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/xattr.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-11-04 22:05:38 +0100
committerJakob Unterwurzacher2019-01-01 16:24:25 +0100
commit2de3851abddd26949b72b9b255ce836fc93ed284 (patch)
treee7be53226bbe58fbb243617d5e46e6f7f83c4217 /internal/fusefrontend/xattr.go
parent4fae240153a5300b7108bf5c2de2b6581c8ee7fd (diff)
nametransform: rename WriteLongName() -> WriteLongNameAt()
And also rename DeleteLongName() -> DeleteLongNameAt(). The naming follow the names open the openat() etc syscalls.
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 81cb207..a0f795a 100644
--- a/internal/fusefrontend/xattr.go
+++ b/internal/fusefrontend/xattr.go
@@ -70,7 +70,10 @@ func (fs *FS) SetXAttr(path string, attr string, data []byte, flags int, context
return unpackXattrErr(xattr.LSetWithFlags(cPath, cAttr, cData, flags))
}
-// RemoveXAttr implements pathfs.Filesystem.
+// RemoveXAttr - FUSE call.
+//
+// TODO: Make symlink-safe. Blocker: package xattr does not provide
+// fremovexattr(2).
func (fs *FS) RemoveXAttr(path string, attr string, context *fuse.Context) fuse.Status {
if fs.isFiltered(path) {
return fuse.EPERM