From: johann Date: Thu, 27 Nov 2008 10:27:02 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_120~55 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2a3fa6e1d1674d9a2b96854c61209618eeca42e0;hp=f81e107d0a1d486328cc4011770be7c1cd5fcddf;p=fs%2Flustre-release.git Branch HEAD b=16164 i=adilger i=bobijam enable OBD_CONNECT_{CKSUM,BRW_SIZE} in mds_lov_connect() --- diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 4c1ede1..7886c1c 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -49,6 +49,7 @@ #include #include #include +#include #include "mds_internal.h" @@ -641,12 +642,17 @@ 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_AT | OBD_CONNECT_CHANGE_QS; #ifdef HAVE_LRU_RESIZE_SUPPORT data->ocd_connect_flags |= OBD_CONNECT_LRU_RESIZE; #endif data->ocd_version = LUSTRE_VERSION_CODE; data->ocd_group = mdt_to_obd_objgrp(mds->mds_id); + /* send max bytes per rpc */ + data->ocd_brw_size = PTLRPC_MAX_BRW_PAGES << CFS_PAGE_SHIFT; + /* send the list of supported checksum types */ + data->ocd_cksum_types = OBD_CKSUM_ALL; /* NB: lov_connect() needs to fill in .ocd_index for each OST */ rc = obd_connect(NULL, &conn, mds->mds_osc_obd, &obd->obd_uuid, data, NULL); OBD_FREE(data, sizeof(*data));