Whamcloud - gitweb
LU-570: Add function to find connect uuid by nid
authorJinshan Xiong <jay@whamcloud.com>
Wed, 10 Aug 2011 19:30:20 +0000 (12:30 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 Oct 2011 00:05:46 +0000 (20:05 -0400)
commitae53bf3341fa6aed70c5dc651dcaf63c90e56bdb
tree6a6ca50610053f0903cbc64230d0d128fb7be07d
parentbef2828d5dbe56fd0a59c2a260794771f89795b8
LU-570: Add function to find connect uuid by nid

In this patch, two functions are added:
- class_find_uuid(), find conn uuid by peer nid
- client_import_find_conn(), find a conn uuid in import connection list

Also, a code cleanup is performed.

Change-Id: I50e8e9392a39ef78719504cf083c0c22f5d39dcb
Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1189
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustre_user.h
lustre/include/lustre_net.h
lustre/include/obd_class.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/lustre_peer.c