From 05606cde59ac2f1595bdd9bfc44385182e68bb45 Mon Sep 17 00:00:00 2001 From: Luke Alonso Date: Thu, 24 Oct 2019 15:32:58 -0700 Subject: [PATCH] Don't log ERANGE for ListXattrOp. ListXattrOp behaves similarly to GetXattrOp in that you have to return ERANGE in order to indicate the size of the attribute list, so logging errors isn't warranted. --- connection.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/connection.go b/connection.go index 4b7a6be..64f1ae1 100644 --- a/connection.go +++ b/connection.go @@ -445,8 +445,7 @@ func (c *Connection) shouldLogError( if err == syscall.ENOENT { return false } - - case *fuseops.GetXattrOp: + case *fuseops.GetXattrOp, *fuseops.ListXattrOp: if err == syscall.ENODATA || err == syscall.ERANGE { return false }