Re: [PATCH] xattr: Fix error results for non-existent / invisible attributes

Christoph Hellwig
2011-06-20T08:09:30Z

On Fri, May 27, 2011 at 02:50:36PM +0200, Andreas Gruenbacher wrote:
> Return -ENODATA when trying to read a user.* attribute which cannot
> exist: user space otherwise does not have a reasonable way to
> distinguish between non-existent and inaccessible attributes.
>
> Likewise, return -ENODATA when an unprivileged process tries to read a
> trusted.* attribute: to unprivileged processes, those attributes are
> invisible (listxattr() won't include them).

This breaks xfstests 062. It would also be very useful to send VFS
patches to linux-fsdevel, btw.