LU-1746 osd-zfs: fix LU_BUF_NULL in osd_xattr_list()
== sanity test 17k: symlinks: rsync with xattrs enabled
=========================== 17:49:09 (
1344332949)
sending incremental file list
rsync: get_xattr_names: llistxattr(".",0) failed: Numerical
result out of range (34)
[...]
It happened like this:
osd_sa_xattr_list()
osd_xattr_list()
...
mdt_getxattr_pack_reply()
mdt_getxattr()
mdt_getxattr_pack_reply() passed LU_BUF_NULL as lu_buf to
learn how big the buffer should be. osd_xattr_list() does
not support such queries with NULL buffers.
Test-Parameters: envdefinition=USE_OFD=yes,LOAD_MODULES_REMOTE=true
Signed-off-by: Minh Diep <minh.diep@intel.com>
Change-Id: I1aa63d9774770c14db2b332e634734cda3a160b6
Reviewed-on: http://review.whamcloud.com/3863
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Wei <liwei@whamcloud.com>