Whamcloud - gitweb
LU-6027 osd-zfs: Preserve lu_buf when listing EAs 80/12880/4
authorLi Wei <wei.g.li@intel.com>
Sat, 29 Nov 2014 03:21:19 +0000 (11:21 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 26 Dec 2014 18:04:23 +0000 (18:04 +0000)
commit75f0f0675d0eadc634c098d664b7af78547999c9
treea17609e5061c06287a1971750d0dbbcb2f461110
parent1224f40d2e5be236b76b4013e4d926b77a56a3da
LU-6027 osd-zfs: Preserve lu_buf when listing EAs

Current osd_xattr_list() in osd-zfs modifies its lu_buf argument,
leaving lu_buf::lb_buf pointing to the end of the original buffer.
This behavior is unnecessary and counter-intuitive.  This patch
preserves the content of the lu_buf argument and updates OSD API to
reduce the chance of future regressions.

Change-Id: I0d3e334848734ca6f44778e87b5ff3b044826784
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/12880
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/dt_object.h
lustre/lod/lod_object.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_xattr.c