Whamcloud - gitweb
b=22430 parse names with hiphen properly
authorMaxim Patlasov <Maxim.Patlasov@sun.com>
Sun, 22 Aug 2010 14:42:10 +0000 (18:42 +0400)
committerMikhail Pershin <tappro@sun.com>
Fri, 27 Aug 2010 13:53:54 +0000 (17:53 +0400)
commitc72ca4f5f9f9d5412259dcac44bd13b7ad3910eb
tree5040085c1f92731b9a1aaf32dfc52ee2b04f6afe
parent6c2af9197a50871b83683cb079a006bae6e50819
b=22430 parse names with hiphen properly

i=liang
The names like sfire13-ib@o2ib confuse lctl ping because it assumes
"[PID-]NID[@network]" format. The patch fixes the problem by trying
"PID-NID" format first and falling back to "NID" format if the attempt
failed.
lnet/utils/portals.c
lustre/tests/sanity.sh