Whamcloud - gitweb
* Removed unused libcfs cfs_rdev_{major,minor} etc.
[fs/lustre-release.git] / lnet / selftest / console.c
index f474c0b..805091b 100644 (file)
@@ -1204,7 +1204,7 @@ again:
 int
 lstcon_test_add(char *name, int type, int loop, int concur,
                 int dist, int span, char *src_name, char * dst_name,
-                void *param, int paramlen, struct list_head *result_up)
+                void *param, int paramlen, int *retp, struct list_head *result_up)
                 
 {
         lstcon_group_t  *src_grp = NULL;
@@ -1236,6 +1236,9 @@ lstcon_test_add(char *name, int type, int loop, int concur,
                 goto out;
         }
 
+        if (dst_grp->grp_userland)
+                *retp = 1;
+
         LIBCFS_ALLOC(test, offsetof(lstcon_test_t, tes_param[paramlen]));
         if (!test) {
                 CERROR("Can't allocate test descriptor\n");
@@ -1271,7 +1274,7 @@ lstcon_test_add(char *name, int type, int loop, int concur,
 
         if (lstcon_trans_stat()->trs_rpc_errno != 0 ||
             lstcon_trans_stat()->trs_fwk_errno != 0)
-                CDEBUG(D_NET, "Failed to add test %d to batch %s", type, name);
+                CDEBUG(D_NET, "Failed to add test %d to batch %s\n", type, name);
 
         /* add to test list anyway, so user can check what's going on */
         list_add_tail(&test->tes_link, &batch->bat_test_list);
@@ -1849,6 +1852,9 @@ lstcon_acceptor_handle (srpc_server_rpc_t *rpc)
         ndl->ndl_node->nd_state   = LST_NODE_ACTIVE;
         ndl->ndl_node->nd_timeout = console_session.ses_timeout;
 
+        if (grp->grp_userland == 0)
+                grp->grp_userland = 1;
+
         strcpy(jrep->join_session, console_session.ses_name);
         jrep->join_timeout = console_session.ses_timeout;
         jrep->join_status  = 0;