Whamcloud - gitweb
LU-2674 osp: set proper connection flag
authorNiu Yawei <niu@whamcloud.com>
Fri, 25 Jan 2013 04:05:30 +0000 (23:05 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 28 Jan 2013 05:40:52 +0000 (00:40 -0500)
Set proper connection flag for the osp-on-ost.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Idf80df593f22309565c92630f5c04fc3781e3d34
Reviewed-on: http://review.whamcloud.com/5167
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/obdclass/obd_mount.c

index 411efa2..5be2a5e 100644 (file)
@@ -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)