Whamcloud - gitweb
LU-10100 llite: swab LOV EA user data 91/35291/12
authorJian Yu <yujian@whamcloud.com>
Sat, 20 Jul 2019 09:30:33 +0000 (02:30 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 27 Jul 2019 00:21:20 +0000 (00:21 +0000)
commit9d17996766e0fa93b1029d2422d45d087edde389
tree86be42967571df5fef299fce99ed6e8fa0524677
parent6522c47dfe1d9df22507a8ad11ceed86279a5959
LU-10100 llite: swab LOV EA user data

Many sub-tests failed with "Invalid argument" failures
on PPC client because of the endianness issue.

This patch fixes the issue by adding a common function
lustre_swab_lov_user_md() to swab the LOV EA user data.

Test-Parameters: clientarch=ppc64 \
envdefinitions=ONLY=27 testlist=sanity

Change-Id: I46bab0788300cd79c4e66e1a4990c3e1f7192391
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/35291
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_swab.h
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_lib.c
lustre/llite/xattr.c
lustre/ptlrpc/pack_generic.c
lustre/tests/parse_foreign_dir.c
lustre/tests/parse_foreign_file.c