Whamcloud - gitweb
LU-2471 tests: Fix facet_type() to recognise names like mds1_2
authorLi Wei <wei.g.li@intel.com>
Tue, 18 Dec 2012 14:40:49 +0000 (22:40 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Dec 2012 16:18:36 +0000 (11:18 -0500)
commit50e4b61886c4ded7959aabcdeadd162ecea8ea69
tree9cbea8f9c4a34eab1984d03b178a06547cf46622
parent018988a3b7241407a5c6d6829fac62ae9f2c486f
LU-2471 tests: Fix facet_type() to recognise names like mds1_2

In conf-sanity 24a, mdsdevname() and mdsvdevname() are given facet
numbers like "1_2".  This causes facet_type() to be given facet names
like "mds1_2", which it can not return the facet type "MDS".  This
patch fixes facet_type() to handle names like "mds1_2" properly.

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