Whamcloud - gitweb
LU-14156 utils: mirror split to check for last in-sync early 82/40782/47
authorAlex Zhuravlev <bzzz@whamcloud.com>
Fri, 27 Nov 2020 11:00:46 +0000 (14:00 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Aug 2023 06:21:00 +0000 (06:21 +0000)
commite656cccbdcf3793c9a036fab265400a3ebddf5e5
tree8bce074d222c7a402babf34021d21b5883454cc5
parente2738d294d0242b1e5d1cc0269a6b36a169ab0dc
LU-14156 utils: mirror split to check for last in-sync early

currently this check to prevent last in-sync component is done
once the file is open with O_RDWR which interrupts on-going
resync/extend process. instead we can do this check early once
the layout is fetched (after the first open with O_RDONLY).

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Iee08d23008b44d2a7b2127358116a95ace40b7dd
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/40782
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh
lustre/utils/lfs.c