Whamcloud - gitweb
LU-5342 lmv: fix some byte order issues 06/11106/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 15 Jul 2014 14:12:00 +0000 (09:12 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 1 Aug 2014 03:10:48 +0000 (03:10 +0000)
commit1ae726743b5a051bb4daa731d93496a3e7f7a93c
treef36eadcb6c4e143bf2ef05433404cc86f1973103
parent635421641bfa8a412edebd4ffbbdf05fd0c47410
LU-5342 lmv: fix some byte order issues

In the handler for LL_IOC_LMV_GETSTRIPE convert stripe FIDs from
little to CPU endian when unpacking lmv_user_md. In lmv_unpack_md_v1()
fix a double conversion of the stripe count. In
lustre_swab_lmv_user_md() do not convert stripe FIDs.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I0aa623a544c1b4d05a0ecf6ac99863c0e75daa54
Reviewed-on: http://review.whamcloud.com/11106
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/dir.c
lustre/lmv/lmv_obd.c
lustre/ptlrpc/pack_generic.c