]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests 062: Also accept "no such attribute" errors for invalid extended attributes
authorEric Sandeen <sandeen@sandeen.net>
Fri, 19 Aug 2011 14:57:12 +0000 (09:57 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 19 Aug 2011 14:57:12 +0000 (09:57 -0500)
commit99102d6247a24850a4607055da6c73404c9f1874
tree1575d624518c31c29308ec8d53c60e252b91d4d2
parentde164fbfb3e39b0fa22b7150960b921efa417fed
xfstests 062: Also accept "no such attribute" errors for invalid extended attributes

In older Linux kernels, requesting an extended attribute which cannot exist
failed with EPERM.  In version 3.0, this was changed to ENODATA so that
programs can distinguish between missing attributes and permission problems
independent of the file type.

For example, lgetxattr("file", "user.name", NULL, 0) will now return ENODATA if
no such attribute exists even if "file" is a symbolic link.

In test 062, to make it work on kernels before and after 3.0, accept either of
the two error results from getfattr.

Signed-off-by: Andreas Gruenbacher <agruen@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
062
062.out