Whamcloud - gitweb
LU-11107 mdt: handle nonexistent xattrs correctly 53/32753/3
authorJohn L. Hammond <jhammond@whamcloud.com>
Mon, 2 Jul 2018 15:07:51 +0000 (10:07 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 24 Jul 2018 16:01:08 +0000 (16:01 +0000)
commit39c7ac4c0dce3c62795814cd12a78bec1877520b
tree9ba6f5566e1dde9723e04a09f417a543c4dbafb6
parentb6ebc92a899dcfeb76d343a22814343acd726592
LU-11107 mdt: handle nonexistent xattrs correctly

In mdt_getxattr_pack_reply() propagate -ENODATA returns from
mo_xattr_list() to mdt_getxattr(). Add sanity test_102s() to ensure
that getting a nonexistint xattr will fail.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ic7a01feb3fcac66d39f84b4ebdfc86025c3e2779
Reviewed-on: https://review.whamcloud.com/32753
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
lustre/mdt/mdt_xattr.c
lustre/tests/sanity.sh