Whamcloud - gitweb
LU-2111 echo_cleint: Wrong error code returns for MDS echo
authorJames Simmons <uja.ornl@gmail.com>
Mon, 8 Oct 2012 18:45:39 +0000 (14:45 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 11 Oct 2012 15:14:52 +0000 (11:14 -0400)
commit6e12003b950c163df02e63026aefcc60e12892e2
tree9e24cb50ca54233bc926bae8b22ff4f8e7462af6
parent60e052d06f7f82e13fc551b96d1ca7585ac505df
LU-2111 echo_cleint: Wrong error code returns for MDS echo

If MD echo client fails to resolve a path a error is
returned by PTR_ERR but the rc variable is never updated
with this value to return back thus the application
thinks it worked. This patch properly sets the returned
rc variable to let the application testing know a failure
has occured.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: If7d2e9fbb28bcb239f7cc5021efebdcf0784ea14
Reviewed-on: http://review.whamcloud.com/4225
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdecho/echo_client.c