Whamcloud - gitweb
LU-6086 obdclass: check peer's version for MDT-MDT connection 85/13285/5
authorFan Yong <fan.yong@intel.com>
Tue, 4 Nov 2014 09:32:15 +0000 (17:32 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 10 Feb 2015 18:04:09 +0000 (18:04 +0000)
commit0030ed640284e4ed5afa9187c5a907141132b083
tree16275cda36e2badd84443af1594be55978e695f0
parent6c55653ed07c4e4c98efdad7693a9543a41d591b
LU-6086 obdclass: check peer's version for MDT-MDT connection

Because new DNE/LFSCK changed some wire protocol, we cannot support
the interoperations between different version MDTs. The basic rules
for the permitted connection are:
1) The @major in the connection version should be the same;
2) The @minor in the connection version should be the same;
3) The difference of the @patch in the connection version should NOT
   more than 3.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I9e77f305c7552ad01e92c97f1eda0756f1291d30
Reviewed-on: http://review.whamcloud.com/13285
Tested-by: Jenkins
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/ldlm/ldlm_lib.c
lustre/lod/lod_lov.c
lustre/ptlrpc/import.c