Skip to content
Snippets Groups Projects
Commit 1071762e authored by Liang Zhen's avatar Liang Zhen
Browse files

Branch HEAD

Check and warning user if session NID is not valide
parent 9b8bc9b8
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,12 @@ lstjn_join_session(char *ses, char *grp)
srpc_mksn_reply_t *srep;
int rc;
sesid.nid = libcfs_str2nid(ses);
sesid.pid = LUSTRE_LNET_PID;
sesid.nid = libcfs_str2nid(ses);
if (sesid.nid == LNET_NID_ANY) {
fprintf(stderr, "Invalid session NID: %s\n", ses);
return -1;
}
rpc = sfw_create_rpc(sesid, SRPC_SERVICE_JOIN, 0,
0, lstjn_rpc_done, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment