From c3f22bfae4ca23664959996a7d154f311f694271 Mon Sep 17 00:00:00 2001 From: Niu Yawei Date: Thu, 24 Jan 2013 23:05:30 -0500 Subject: [PATCH] LU-2674 osp: set proper connection flag Set proper connection flag for the osp-on-ost. Signed-off-by: Niu Yawei Change-Id: Idf80df593f22309565c92630f5c04fc3781e3d34 Reviewed-on: http://review.whamcloud.com/5167 Reviewed-by: wangdi Reviewed-by: Doug Oucharek Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo --- lustre/obdclass/obd_mount.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 411efa2..5be2a5e 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -1054,11 +1054,9 @@ static int lustre_osp_connect(struct obd_device *osp) data->ocd_connect_flags = OBD_CONNECT_VERSION | OBD_CONNECT_INDEX; data->ocd_version = LUSTRE_VERSION_CODE; - data->ocd_ibits_known = MDS_INODELOCK_UPDATE; - data->ocd_connect_flags |= OBD_CONNECT_ACL | OBD_CONNECT_IBITS | - OBD_CONNECT_MDS_MDS | OBD_CONNECT_FID | - OBD_CONNECT_AT | OBD_CONNECT_FULL20 | - OBD_CONNECT_LVB_TYPE | + data->ocd_connect_flags |= OBD_CONNECT_MDS_MDS | OBD_CONNECT_FID | + OBD_CONNECT_AT | OBD_CONNECT_LRU_RESIZE | + OBD_CONNECT_FULL20 | OBD_CONNECT_LVB_TYPE | OBD_CONNECT_LIGHTWEIGHT; OBD_ALLOC_PTR(uuid); if (uuid == NULL) -- 1.8.3.1