Whamcloud - gitweb
LU-3187 ost: check pre 2.4 echo client in obdo validation
authorwang di <di.wang@intel.com>
Tue, 7 May 2013 07:00:46 +0000 (00:00 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 13 May 2013 16:30:06 +0000 (12:30 -0400)
commit00d9dff4fa51321b2185fcdc381ee8edb6ca62ce
tree700b40f0355f605a50d3a01ea3739697305544fd
parent338ee6dc275f49be67fd098faf2d85458b75b0f2
LU-3187 ost: check pre 2.4 echo client in obdo validation

Because old echo client still uses o_id/o_seq for objid,
but new echo client will uses FID for the objid. Add
OBD_CONNECT_FID for 2.4 echo client, so 2.4 OST will
convert o_id/o_seq to FID if the request from old echo
client.

Add local flag OBD_FL_OSTID for o_flags to indicate
OST does not support FID yet, then echo client will
still send o_id/o_seq to OST.

cleanup ost_validate_obdo

Test-Parameters: clientjob=lustre-b2_1 clientbuildno=197 testlist=sanity,obdfilter-survey
Test-Parameters: serverjob=lustre-b2_1 serverbuildno=197 testlist=sanity,obdfilter-survey
Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I6001c813b668cf53a66d0d9d74f322bad63765ed
Reviewed-on: http://review.whamcloud.com/6287
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/mdt/out_handler.c
lustre/obdecho/echo_client.c
lustre/osc/osc_request.c
lustre/osp/osp_md_object.c
lustre/osp/osp_precreate.c
lustre/ost/ost_handler.c