Whamcloud - gitweb
Branch b1_6
authoradilger <adilger>
Wed, 30 May 2007 20:42:38 +0000 (20:42 +0000)
committeradilger <adilger>
Wed, 30 May 2007 20:42:38 +0000 (20:42 +0000)
Connect the echo client with the separate REQPORTAL feature.
This ensures that IO requests are sent to the IO portal, since liblustre
clients (and eventually 1.8) default to connecting to the REQPORTAL and
will send IO requests there incorrectly.
b=11813
i=green
i=shadow

lustre/obdecho/echo_client.c

index 83f4ab9..cf7f33d 100644 (file)
@@ -1383,7 +1383,7 @@ echo_client_setup(struct obd_device *obddev, obd_count len, void *buf)
                 return -ENOMEM;
         }
 
-        ocd->ocd_connect_flags = OBD_CONNECT_VERSION;
+        ocd->ocd_connect_flags = OBD_CONNECT_VERSION | OBD_CONNECT_REQPORTAL;
         ocd->ocd_version = LUSTRE_VERSION_CODE;
 
         rc = obd_connect(&conn, tgt, &echo_uuid, ocd);