Whamcloud - gitweb
LU-13460 lfs: use correct obd index in print_failed_tgt() 64/38264/3
authorEmoly Liu <emoly@whamcloud.com>
Fri, 17 Apr 2020 10:52:07 +0000 (18:52 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 1 May 2020 04:27:21 +0000 (04:27 +0000)
commit25e58c4755609f74bbcd046fd3cea17a7a6dd063
tree4b4e08f5ba5c2d754cfaff1b11dc4433de833a60
parentce4d3aaac7c25d0b00f610e0fbd8f4142df6a80f
LU-13460 lfs: use correct obd index in print_failed_tgt()

In function print_failed_tgt(), when calling llapi_obd_statfs(),
the correct obd index should be used according to obd type.

sanity.sh test_56rb is added to verify this patch.

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Change-Id: I443a5b388ee1c3efc8fc589c09aeec6f9b71600b
Reviewed-on: https://review.whamcloud.com/38264
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c