Whamcloud - gitweb
LU-473 llite: improve error for 2.x cli + 1.8 srv
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 29 Jun 2011 20:36:25 +0000 (14:36 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 Aug 2011 16:58:38 +0000 (12:58 -0400)
commit04f2d8ab2524851477f0b6fbffbc115d0c82fdc6
treeaf236c756e2cb3f81f0ba58c6cf7b1b9b2a30b85
parentfdf3dec6c60c734fdbb7b5b8da0f3040c6b54748
LU-473 llite: improve error for 2.x cli + 1.8 srv

Improve the error message printed to the console when a 2.x client
is trying to mount a 1.8 filesystem.  More specifically, have the 2.x
client check whether the MDS supports the OBD_CONNECT_FID and
OBD_CONNECT_FULL20 flags, without which the client will not be able
to cope.  The 2.x client also does not understand the RPC structure
of 1.8 servers (mdt_body, mdt_rec, etc), but this is harder to check.

For a 2.x server, the client will configure an LMV device, so
exp_connect_flags will be zero, but in that case we also know the
server is running 2.x.

Change-Id: I935571aa0623f9311ddf0545904230721d2fad32
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1036
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustre_idl.h
lustre/include/obd_class.h
lustre/llite/llite_lib.c
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/import.c