Whamcloud - gitweb
LU-9490 llite: return v1/v3 layout for legacy app 10/27310/2 pfl
authorNiu Yawei <yawei.niu@intel.com>
Thu, 18 May 2017 07:12:54 +0000 (03:12 -0400)
committerAndreas Dilger <andreas.dilger@intel.com>
Tue, 30 May 2017 05:00:43 +0000 (05:00 +0000)
commitfac27756d5f2a283a5ec7a908e6434d30748a6bd
tree3fa26d968bb0f9b94e4604f077c2bcf278329c15
parent53df5593801680cedecb008e4a46678edd0bcf31
LU-9490 llite: return v1/v3 layout for legacy app

Legacy app such as ADIO fetches LOVEA by ioctl LL_IOC_LOV_GETSTRIPE
and treats file layout as v1/v3 blindly, we'd return a reasonable
v1/v3 in this case.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I95694c3e32013c75da097f2f6ae4e8915503596e
Reviewed-on: https://review.whamcloud.com/27310
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/lov/lov_cl_internal.h
lustre/lov/lov_object.c
lustre/lov/lov_pack.c