Whamcloud - gitweb
LU-6482 lov: calculate file offset correctly 62/14462/3
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 14 Apr 2015 21:07:12 +0000 (14:07 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 28 Apr 2015 05:23:26 +0000 (05:23 +0000)
commit375c3219054045d47cffc3664fedceaad47cf894
treeccebd7b31d65b8397883ae41534a0500400e64b3
parent87546548eb11584e686f3ba4c3111ca7e35b0159
LU-6482 lov: calculate file offset correctly

In lov_stripe_pgoff(), it calls lov_stripe_size() to calculate the
file size by ost_size, which will be wrong if the stripe_index
happens to be stripe aligned.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I87f33027a835121e7b45687e3642ca50bfbf94da
Reviewed-on: http://review.whamcloud.com/14462
Tested-by: Maloo <hpdd-maloo@intel.com>
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/lov/lov_offset.c