From 98eb0eb649638c752b3066c7e7b2398140ef2e33 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 18 May 2023 10:45:29 -0700 Subject: [PATCH] Add t_quorum_nrs test helper Add a quick function that outputs the fs numbers of the quorum mounts. Signed-off-by: Zach Brown --- tests/funcs/fs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/funcs/fs.sh b/tests/funcs/fs.sh index de2223ef..44ab7791 100644 --- a/tests/funcs/fs.sh +++ b/tests/funcs/fs.sh @@ -75,6 +75,15 @@ t_fs_nrs() seq 0 $((T_NR_MOUNTS - 1)) } +# +# output the fs nrs of quorum nodes, we "know" that +# the quorum nrs are the first consequtive nrs +# +t_quorum_nrs() +{ + seq 0 $((T_QUORUM - 1)) +} + # # outputs "1" if the fs number has "1" in its quorum/is_leader file. # All other cases output 0, including the fs nr being a client which