Whamcloud - gitweb
LU-13115 mdt: handle mdt_pack_sectx_in_reply() errors 48/37148/4
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 7 Jan 2020 09:49:20 +0000 (12:49 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Jan 2020 04:03:57 +0000 (04:03 +0000)
commit732ed22bdb6ca6abe8896f24e7ba46eea3fc379d
tree01a23e2c4f8d8056a62b30e7d8c22429cd75cdad
parent89aff2f3a17d26f9b86f9afd1bd4631358586ce5
LU-13115 mdt: handle mdt_pack_sectx_in_reply() errors

The mdt_pack_secctx_in_reply() contains mo_xattr_get() call
which -ENOENT error should be checked and exit by error path
if needed.

In DNE environment lu_object may lost its LOHA_EXISTS flag
during osp_xattr_get() and that should be handled to don't
proceed with code paths for existent objects.

Test-Parameters: clientselinux mdtcount=4 envdefinitions=ONLY=185a testlist=sanity,sanity,sanity,sanity
Test-Parameters: clientselinux mdtcount=4 testlist=sanity,recovery-small,sanity-sec
Test-Parameters: clientselinux mdtcount=4 testgroup=review-dne-selinux
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I55ad666f58dd3fae3ed097018aa23ed94818d246
Reviewed-on: https://review.whamcloud.com/37148
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c