local=cnt is clearly a typo and shoule be just local
Change-Id: I055c65eca5fe356dd5d180b4c8bf238c9f27c179
Fixes:
0c710a46cfb4 ("LU-11022 lfs: remove mirror by pool name")
Test-Parameters: trivial
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59446
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
if [ $MDS1_VERSION -ge $(version_code 2.12.55) ]; then
# LU-11022 - remove mirror by pool name
- local=cnt cnt=$($LFS getstripe $tf | grep archive | wc -l)
+ local cnt=$($LFS getstripe $tf | grep archive | wc -l)
[ "$cnt" != "1" ] && error "unexpected mirror count $cnt"
$LFS mirror delete --pool archive $tf || error "delete mirror"
cnt=$($LFS getstripe $tf | grep archive | wc -l)