Whamcloud - gitweb
LU-760 obdecho: initialization and awk problem
authorJinshan Xiong <jay@whamcloud.com>
Thu, 13 Oct 2011 23:27:08 +0000 (16:27 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 18 Oct 2011 00:37:43 +0000 (20:37 -0400)
commita08b190a278e952e1c303eb49233b542189656e6
treeb42f9dc5a666009b87413a8d5bc55f4ef33e8fa4
parent60c6d854fbcadce00edf1543317ab229dd7ce3a9
LU-760 obdecho: initialization and awk problem

echo_client registers obd type and then initializes kmem cache, this is
problematic because echo_key will be immidiately accessed after obd type
is registered. This will cause kernel fault.

Also, an awk problem is fixed. If the length of output buffer is longer
than 1024 bytes, awk will run into problem.

Change-Id: Ief287e8f4eeb6a39bc336e7a9f5c21e921b79a58
Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1521
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/obdecho/echo_client.c
lustre/tests/sanity.sh