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.
Luke Alonso 2019-10-24 15:32:58 -07:00 committed by Michael Stapelberg
parent ac0efb5a5a
commit 05606cde59
1 changed files with 1 additions and 2 deletions

View File

@ -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