Whamcloud - gitweb
LU-7543 obd: reserve connection flag OBD_CONNECT_FLAGS2 47/17647/2
authorFan Yong <fan.yong@intel.com>
Mon, 19 Oct 2015 22:33:23 +0000 (06:33 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 6 Jan 2016 02:57:40 +0000 (02:57 +0000)
commita5dc6abb06215856dde2d572f7d4c24dddebb718
tree6510244a4475fbd0a77d72c9741d826c2a0eda1f
parent20d7508afa3b6f3ac703b4d43e5b1ad0ba782f19
LU-7543 obd: reserve connection flag OBD_CONNECT_FLAGS2

This is a feature for the client and server to use
obd_connect_flags2 to communicate future feature flags. The
client should set this flag whenever any flags in that field
are requested, and the server should mask unsupported features
from this field (assuming it understands OBD_CONNECT_FLAGS2).
When checking if an OBD_CONNECT2_xxxx feature is supported,
the client/server needs to firstly check if OBD_CONNECT_FLAGS2
is supported, since this field is also beyond the end of the
old obd_connect_data.

Land the connection flags to master earlier for reserving the
slot to avoid potential conflict with others.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I466a4f858326d79f8c732116915b078902aa0736
Reviewed-on: http://review.whamcloud.com/17647
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/wiretest.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c