Whamcloud - gitweb
LU-14128 lov: correctly set OST obj size 81/40581/6
authorBobi Jam <bobijam@whamcloud.com>
Mon, 9 Nov 2020 15:20:10 +0000 (23:20 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 12 Jan 2021 07:57:48 +0000 (07:57 +0000)
When extends a PFL file to a size locating at a boundary of a stripe
in a component, the truncate won't set the size of the OST object
in the prior stripe.

This patch record the prior stripe in
lov_layout_raid0::lo_trunc_stripeno and add the stripe in the
truncate IO and enqueue the lock covering it.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ic5d8e3c16f950003736cd6dbd5af404613f818c7
Reviewed-on: https://review.whamcloud.com/40581
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>

No differences found