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.
geesefs-0-30-9
Luke Alonso 3 years ago committed by Michael Stapelberg
parent ac0efb5a5a
commit 05606cde59
  1. 3
      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
}

Loading…
Cancel
Save