Whamcloud - gitweb
LU-2563 tests: Print correct names in mgsdevname()
authorLi Wei <wei.g.li@intel.com>
Fri, 4 Jan 2013 03:55:18 +0000 (11:55 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 23 Jan 2013 18:37:30 +0000 (13:37 -0500)
commit99baa15238372186cb9b02dca6aff7e3852c65b5
treefa4f0d7b9fc690b95f69c030918173a7ff428683
parent92c9855dfc4300a1559312b6f8c5423fc2c6846c
LU-2563 tests: Print correct names in mgsdevname()

Current mgsdevname() prints names of block devices (or files for loop
devices) regardless of MGS back end types.  This is plainly a
violation of what the function is expected to do.  If an MGS is
ZFS-based, mgsdevname() should print the dataset name instead of the
VDev names.  This patch fixes the regression and makes sure that
mgsdevname() and mgsvdevname() work for both standalone and
MDT-combined MGSs.

Signed-off-by: Li Wei <wei.g.li@intel.com>
Change-Id: I5885af48e811fcd98aa00c5d901db30e5837b505
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/4950
Tested-by: Hudson
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/test-framework.sh