Whamcloud - gitweb
LU-10100 llite: swab LOV EA user data 33/35633/2
authorJian Yu <yujian@whamcloud.com>
Mon, 29 Jul 2019 07:33:52 +0000 (00:33 -0700)
committerOleg Drokin <green@whamcloud.com>
Sun, 11 Aug 2019 23:33:05 +0000 (23:33 +0000)
commit7995349a2032f39ed83005b977462523864d72fa
tree4ef3917e249e555b250d21531d83eb745ebd9df2
parent77b57fe0d5b06bced89809bfea6cc289aeb478f4
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

This patch is back-ported from the following one:
Lustre-commit: 9d17996766e0fa93b1029d2422d45d087edde389
Lustre-change: https://review.whamcloud.com/35291

Change-Id: I46bab0788300cd79c4e66e1a4990c3e1f7192391
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/35633
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: Maloo <maloo@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