Whamcloud - gitweb
LU-10922 osd-zfs: return -ENOENT if object destoryed 42/32042/3
authorFan Yong <fan.yong@intel.com>
Sat, 21 Apr 2018 04:08:47 +0000 (12:08 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 6 May 2018 03:42:30 +0000 (03:42 +0000)
commit8d2655309a80a55a066011a66e7c95f7a0087e9c
treebc14d5b2f0d0b6e52b011f09e5b3793dec73c3fb
parent99cc32b013d411335a694c5f94a83cef839c68c4
LU-10922 osd-zfs: return -ENOENT if object destoryed

Originally, if the target object does not exist or just destroyed,
the osd_xattr_get_internal() will return -ENOENT to the caller, it
is right. But one of the callers: osd_xattr_get(), converts it as
-ENODATA before returning to the upper layer by wrong.

This patch fixes it.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I9bfd03c53dda165af37a4ae62b4efbc5875833e5
Reviewed-on: https://review.whamcloud.com/32042
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-zfs/osd_xattr.c