Whamcloud - gitweb
LU-1049 script: lc_net doesn't parse output correctly
authorMinh Diep <mdiep@whamcloud.com>
Mon, 6 Feb 2012 23:37:10 +0000 (15:37 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 16 Mar 2012 01:41:19 +0000 (21:41 -0400)
commit265267ebcc83e985060675b102310660f2795dff
tree4fc213fd1062a46ab1c0fe964566a99297dd1416
parent1d9f8f96ae6f1d55e8135bf5d2e71087d25aa8bb
LU-1049 script: lc_net doesn't parse output correctly

Port the second fix from bz=23234
The output of ping contains two ip addresses. The regex
matching picks up both addresses. The fix is to add
-m 1 to stop at the first match
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Change-Id: Iaefe42918b4587f88a8a0cb39cf9afb2a82021ba
Reviewed-on: http://review.whamcloud.com/2105
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: hongchao.zhang <hongchao.zhang@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/scripts/lc_net.in