Whamcloud - gitweb
LU-1049 script: lc_net doesn't parse output correctly
authorMinh Diep <mdiep@whamcloud.com>
Tue, 31 Jan 2012 00:39:43 +0000 (16:39 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 16 Feb 2012 17:29:02 +0000 (12:29 -0500)
commit7f0ca87bab0d91641431515fa7e3f24bc4aea75e
treeab354e755c77ad5726bd0bbf650e7a032e3fc72f
parentadc30ea680674fc8aec6377dff60748bb566912a
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: Ie145e710844d80587bf6826822c8db941a4a3bae
Reviewed-on: http://review.whamcloud.com/2057
Reviewed-by: Cliff White <cliffw@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/lc_net.in