Whamcloud - gitweb
LU-8840 osp: handle EA cache properly (2) 07/25207/4
authorFan Yong <fan.yong@intel.com>
Sat, 8 Oct 2016 06:00:24 +0000 (14:00 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Apr 2017 03:37:51 +0000 (03:37 +0000)
commit783fccdde2e947628c7ee0eaa0c6bf86fd65e2e8
tree77e5d56e4439d942c2e75b318e075bdaa9255628
parentee915fedac7a8a2d22ff07cb636094136848bfc4
LU-8840 osp: handle EA cache properly (2)

For success case, dt_xattr_get() should return the EA size
instead of zero. If such EA does not exist, return -ENODATA.

More code cleanup for OSP EA cache to avoid potential reference
leak, buffer overflow, and so on.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I85d7c7a2cafd50334f2ea0634f5e2b21c0b3908e
Reviewed-on: https://review.whamcloud.com/25207
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_update.h
lustre/lfsck/lfsck_namespace.c
lustre/osp/osp_object.c
lustre/target/out_handler.c