[PATCH] tests: wait for size to be updated in lvconvert-raid-reshape-size.sh
Benjamin Marzinski <[email protected]> Tue, 1 Oct 2024 18:46:39 -0400
| Newsgroups | dev.linux.lists.lvm-devel |
|---|---|
| Message-ID | <[email protected]> |
lvconvert-raid-reshape-size was occassionally failing because it was checking the size before it got updated. Signed-off-by: Benjamin Marzinski <[email protected]> --- test/shell/lvconvert-raid-reshape-size.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/shell/lvconvert-raid-reshape-size.sh b/test/shell/lvconvert-raid-reshape-size.sh index ea367da18..2758eca71 100644 --- a/test/shell/lvconvert-raid-reshape-size.sh +++ b/test/shell/lvconvert-raid-reshape-size.sh @@ -158,6 +158,7 @@ function _reshape_layout if [ $wait_for_reshape -eq 1 ] then aux wait_for_sync $vg $lv $ignore_a_chars + sleep 1 fsck -fn "$DM_DEV_DIR/$vg/$lv" fi } @@ -289,6 +290,7 @@ function _test # Wait for sync to finish to check frow extended LV size aux wait_for_sync $vg $lv 0 + sleep 1 [ $(_check_size $vg $lv $(($data_stripes + 1))) -eq 0 ] || die "LV size should be grown" fsck -fy "$DM_DEV_DIR/$vg/$lv" udevadm settle -- 2.43.5