diff options
| author | Jarek Kowalski | 2026-01-18 10:48:51 -0800 |
|---|---|---|
| committer | GitHub | 2026-01-18 19:48:51 +0100 |
| commit | 6013d56f0c09100190107613ce8c5c4c929216dd (patch) | |
| tree | 33eff2f7c85aeb50be96652773fd76512d9ab386 /internal/fusefrontend_reverse/node_xattr_linux.go | |
| parent | c9cf6f1f8a5b90c9cb70ed19f8c8426dc2655c9d (diff) | |
* added -noxattr flag which ignores all xattr operations
Diffstat (limited to 'internal/fusefrontend_reverse/node_xattr_linux.go')
| -rw-r--r-- | internal/fusefrontend_reverse/node_xattr_linux.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/node_xattr_linux.go b/internal/fusefrontend_reverse/node_xattr_linux.go index f6d04a5..3c574f5 100644 --- a/internal/fusefrontend_reverse/node_xattr_linux.go +++ b/internal/fusefrontend_reverse/node_xattr_linux.go @@ -9,6 +9,9 @@ import ( "github.com/rfjakob/gocryptfs/v2/internal/syscallcompat" ) +// On Linux, ENODATA is returned when an attribute is not found. +const noSuchAttributeError = syscall.ENODATA + func (n *Node) getXAttr(cAttr string) (out []byte, errno syscall.Errno) { d, errno := n.prepareAtSyscall("") if errno != 0 { |
