Whamcloud - gitweb
LU-13427 lmv: do not print MDTs that are inactive 65/38165/4
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 8 Apr 2020 00:37:36 +0000 (18:37 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 May 2020 08:25:24 +0000 (08:25 +0000)
commit3728c2825aa277dbd2523fd240fb04b8699932f8
tree505c7d41117d832b71f8ad06540ac5af9561da4a
parent36a97084791899e73b32b381a98f4f9f51348fe9
LU-13427 lmv: do not print MDTs that are inactive

Have lmv return -EAGAIN instead of -ENODATA for unconfigured MDTs.
That avoids "lfs df -v" from printing a long list of invalid MDTs
when trying to get the target state for non-rotational devices.

Add test for "lfs df -v" printing nonrotational state, as well as
limiting the reported OST and MDT to configured devices.

Fixes: 4c76eb64a9ff ("LU-8920 utils: don't print deactivated OSTs in 'lfs df')
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ia3dcf85f4cf52caa39848f0f6ed8d47d42ce7057
Reviewed-on: https://review.whamcloud.com/38165
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Ben Evans <beevans@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lmv/lmv_obd.c
lustre/tests/sanity.sh
lustre/tests/test-framework.sh