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>
Wed, 8 Feb 2012 00:58:23 +0000 (19:58 -0500)
commitc868fbaf21e10a94dd2b5730030dadc6228d8470
tree23dd71df5def23ddf026a8d02f846059b66a7e49
parentfdc754e444b02c6d6bd984fd919181fb9797c1a2
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