]> git.baikalelectronics.ru Git - kernel.git/commit
Return correct error on query of xattr on file with empty xattrs
authorSteve French <smfrench@gmail.com>
Wed, 26 Mar 2014 00:46:36 +0000 (19:46 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 16 Apr 2014 18:51:46 +0000 (13:51 -0500)
commit3eab6797467c55135c9e0e976abb6321d9f8699c
tree8fa82254a78e80ddafe5b0aadb3e1f6902459b13
parente73e774eae55beb5bd6b8b9a8d63381df3520779
Return correct error on query of xattr on file with empty xattrs

xfstest 020 detected a problem with cifs xattr handling.  When a file
had an empty xattr list, we returned success (with an empty xattr value)
on query of particular xattrs rather than returning ENODATA.
This patch fixes it so that query of an xattr returns ENODATA when the
xattr list is empty for the file.

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifssmb.c