Whamcloud - gitweb
LU-18468 llapi: always truncate mirrors on resync 90/57090/5
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 20 Nov 2024 20:28:55 +0000 (15:28 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 9 Dec 2024 06:03:22 +0000 (06:03 +0000)
commitb5db891cad71f17dda00ab157332db819d2292f8
tree40a24e048f5bab3dc98a8ba3dbc12e748d56c576
parent627cc62369fcfda5c8893c2aba4ad721c4ef1996
LU-18468 llapi: always truncate mirrors on resync

When mirrors are synced, all mirrors should be truncated to
match the size of the source/primary mirror.  This was
skipped if the size was unaligned, but that is a mistake.

Test-Parameters: testlist=sanity-flr,sanity-flr,sanity-flr
Test-Parameters: testlist=sanity-pfl,sanity-pfl,sanity-pfl
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I767a1b3ef58c855f57967228d37b04fa0ab87e57
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57090
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-flr.sh
lustre/utils/liblustreapi_layout.c
lustre/utils/liblustreapi_mirror.c