Whamcloud - gitweb
LU-8654 obd: access ocd_connect_flags2 only when present 37/22837/2
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 30 Sep 2016 13:57:07 +0000 (08:57 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 8 Oct 2016 16:38:01 +0000 (16:38 +0000)
commitc7ede9238c24b8187ee38c80d5b680c8a5a8e703
tree0a36f4aa05b69ee2430ca3f5097645413e7adc90
parent9edc89c11eb673b0c0da08381a6a779e40ff8ac2
LU-8654 obd: access ocd_connect_flags2 only when present

Before 2.7.50 clients will send a struct obd_connect_data_v1 rather
than a full struct obd_connect_data. So check for OBD_CONNECT_FLAGS2
before accessing the ocd_connect_flags2 member of struct
obd_connect_data.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ic1c2b54be9b3cbaec9af894f204663c74fa41213
Reviewed-on: http://review.whamcloud.com/22837
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c
lustre/mgs/mgs_handler.c
lustre/obdecho/echo.c
lustre/ofd/ofd_obd.c