From 418f796ec548168073fdabe57ff6d0038fde03a5 Mon Sep 17 00:00:00 2001 From: yury Date: Mon, 10 Sep 2007 14:49:10 +0000 Subject: [PATCH] - add OBD_CONNECT_LRU_RESIZE for mds->ost connections. MDS does not take locks on OST, but this flag will allow all namespaces look same way if LRU_RESIZE is supported. --- lustre/mds/mds_lov.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 9633c97..f2e00e5 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -338,6 +338,9 @@ int mds_lov_connect(struct obd_device *obd, char * lov_name) RETURN(-ENOMEM); data->ocd_connect_flags = OBD_CONNECT_VERSION | OBD_CONNECT_INDEX | OBD_CONNECT_REQPORTAL | OBD_CONNECT_QUOTA64 | OBD_CONNECT_AT; +#ifdef HAVE_LRU_RESIZE_SUPPORT + data->ocd_connect_flags |= OBD_CONNECT_LRU_RESIZE; +#endif data->ocd_version = LUSTRE_VERSION_CODE; /* NB: lov_connect() needs to fill in .ocd_index for each OST */ rc = obd_connect(&conn, mds->mds_osc_obd, &obd->obd_uuid, data); -- 1.8.3.1