Whamcloud - gitweb
LU-9335 pfl: calculate PFL file LOVEA correctly 97/26597/11
authorBobi Jam <bobijam.xu@intel.com>
Thu, 13 Apr 2017 16:37:25 +0000 (00:37 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Apr 2017 03:36:51 +0000 (03:36 +0000)
commit9460ff5f13102c5981f71e0bbffd4485977517ac
tree3446dbcd943e2fa7b84f61b3f2169905e30db033
parent6dff2ce3ec91fe67c78bacdf00a708fdc97cb3d2
LU-9335 pfl: calculate PFL file LOVEA correctly

PFL file could contain uninstantiated component, so it could still
keeps the specified -1 stripe count,
lov_mds_md_size()/lov_user_md_size() should heed this case,
otherwise its LOVEA size could be errneous big.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Ied4bf4531f0b0ac9fdefc9efef3c97ae5ae449f4
Reviewed-on: https://review.whamcloud.com/26597
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/include/lustre/lustre_user.h