From 2de3851abddd26949b72b9b255ce836fc93ed284 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 4 Nov 2018 22:05:38 +0100 Subject: nametransform: rename WriteLongName() -> WriteLongNameAt() And also rename DeleteLongName() -> DeleteLongNameAt(). The naming follow the names open the openat() etc syscalls. --- internal/fusefrontend/xattr.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/fusefrontend/xattr.go') 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 -- cgit v1.2.3