https://www.rfc-editor.org/rfc/rfc7530#section-16.24 covers READDIR. It says
"In some cases, the server may encounter an error while obtaining the attributes for
a directory entry. Instead of returning an error for the entire READDIR operation, the
server can instead return the attribute 'fattr4_rdattr_error'. With this, the
server is able to communicate the failure to the client and not fail the entire operation
in the instance of what might be a transient failure. Obviously, the client must request
the fattr4_rdattr_error attribute for this method to work properly. If the client does
not request the attribute, the server has no choice but to return failure for the entire
READDIR operation."
I'm working in a team building a VFS. We want to support "readdirplus" style
of readdir. If the VFS cannot get all attributes, my. FSAL must set the rdattr_error. How
should it do that? The fsal_readdir_cb does not seem to have a way to express that. My
guess is I must set bit ATTR_RDATTR_ERR on field fsal_attrlist.valid_mask on the attrs
argument of fsal_readdir_cb.