Whamcloud - gitweb
LU-11107 mdt: handle nonexistent xattrs correctly 10/32910/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Mon, 2 Jul 2018 15:07:51 +0000 (10:07 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 3 Aug 2018 20:30:29 +0000 (20:30 +0000)
commit0ae570b4dccc621c0c5fca9407dd053fc957cc1c
tree807dd6dd4eb8becf16ff8affbcac73d875e736ef
parentf99f9345e46b5b19a8dca2aae4d348c99d8e2481
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.

Lustre-change: https://review.whamcloud.com/32753
Lustre-commit: 39c7ac4c0dce3c62795814cd12a78bec1877520b

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