Whamcloud - gitweb
LU-14128 lov: correctly set OST obj size 48/45448/4
authorBobi Jam <bobijam@whamcloud.com>
Wed, 3 Nov 2021 18:19:09 +0000 (14:19 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Nov 2021 18:44:35 +0000 (18:44 +0000)
commitcfb24815e825738cea16270bbd6e7841b0e7d09b
treec327fa38b14f13233129855315e8c264691bda76
parent5cbc184fbc10fd3d6c23ec3b8b687ffb34a64138
LU-14128 lov: correctly set OST obj size

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.

Lustre-change: https://review.whamcloud.com/40581
Lustre-commit: 98015004516cad1173e2bac2a4695bdc56e4d9a4

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ic5d8e3c16f950003736cd6dbd5af404613f818c7
Reviewed-on: https://review.whamcloud.com/45448
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lov/lov_cl_internal.h
lustre/lov/lov_internal.h
lustre/lov/lov_io.c
lustre/lov/lov_lock.c
lustre/lov/lov_object.c
lustre/lov/lov_offset.c
lustre/tests/Makefile.am
lustre/tests/expand_truncate_test.c [new file with mode: 0644]
lustre/tests/sanity-pfl.sh