From: Li Wei Date: Fri, 9 Sep 2011 13:13:25 +0000 (+0800) Subject: LU-665 mds: Reduce MDS-OSS connection flags X-Git-Tag: 2.1.53~34 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=87bb59a24be0ccb4d8f77da3307ca2b09122393f LU-665 mds: Reduce MDS-OSS connection flags Some connection flags MDSs send to OSSs are unnecessary or misleadingly implying features not (yet) implemented by current MDSs. This patch removes the following ones: - OBD_CONNECT_64BITHASH. MDSs don't send MDS_READPAGE or FLD_QUERY requests to OSSs. - OBD_CONNECT_BRW_SIZE. MDSs don't do bulk I/O with OSSs. - OBD_CONNECT_CKSUM. Ditto. - OBD_CONNECT_FID. MDSs don't support OST FIDs. Change-Id: If94f13cbb0a45b18f87163cfd0936566c67630e4 Signed-off-by: Li Wei Reviewed-on: http://review.whamcloud.com/1375 Reviewed-by: Andreas Dilger Reviewed-by: Fan Yong Tested-by: Hudson Tested-by: Maloo --- diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 70ab89c..ce9ce98 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -714,12 +714,10 @@ int mds_lov_connect(struct obd_device *obd, char * lov_name) data->ocd_connect_flags = OBD_CONNECT_VERSION | OBD_CONNECT_INDEX | OBD_CONNECT_REQPORTAL | OBD_CONNECT_QUOTA64 | - OBD_CONNECT_OSS_CAPA | OBD_CONNECT_FID | - OBD_CONNECT_BRW_SIZE | OBD_CONNECT_CKSUM | + OBD_CONNECT_OSS_CAPA | OBD_CONNECT_FULL20 | OBD_CONNECT_CHANGE_QS | OBD_CONNECT_AT | OBD_CONNECT_MDS | OBD_CONNECT_SKIP_ORPHAN | - OBD_CONNECT_SOM | OBD_CONNECT_FULL20 | - OBD_CONNECT_64BITHASH; + OBD_CONNECT_SOM; #ifdef HAVE_LRU_RESIZE_SUPPORT data->ocd_connect_flags |= OBD_CONNECT_LRU_RESIZE; #endif