From 6013d56f0c09100190107613ce8c5c4c929216dd Mon Sep 17 00:00:00 2001 From: Jarek Kowalski Date: Sun, 18 Jan 2026 10:48:51 -0800 Subject: added -noxattr flag which ignores all xattr operations (#987) * added -noxattr flag which ignores all xattr operations--- internal/fusefrontend/node_xattr_linux.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/fusefrontend/node_xattr_linux.go') diff --git a/internal/fusefrontend/node_xattr_linux.go b/internal/fusefrontend/node_xattr_linux.go index 4a356a5..9964212 100644 --- a/internal/fusefrontend/node_xattr_linux.go +++ b/internal/fusefrontend/node_xattr_linux.go @@ -12,6 +12,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 filterXattrSetFlags(flags int) int { return flags } -- cgit v1.2.3