Please don't reply to lustre-devel. Instead, comment in Bugzilla by using the 
following link:
https://bugzilla.lustre.org/show_bug.cgi?id=11090



The patch shown works OK, but need additional changes to fixup the error message
in import.c
I suggest the following:

--- lustre/ptlrpc/import.c      (revision 4772)
+++ lustre/ptlrpc/import.c      (working copy)
@@ -679,13 +679,15 @@
                               never see this from VFS context */
                                 CERROR("Server %s version (%d.%d.%d.%d) "
                                        "refused connection from this client "
-                                       "as too old version (%s).  Client must
"+                                       "as too %s version (%s).  Client must "
                                        "be recompiled\n",
                                       obd2cli_tgt(imp->imp_obd),
                                       OBD_OCD_VERSION_MAJOR(ocd->ocd_version),
                                       OBD_OCD_VERSION_MINOR(ocd->ocd_version),
                                       OBD_OCD_VERSION_PATCH(ocd->ocd_version),
                                       OBD_OCD_VERSION_FIX(ocd->ocd_version),
+                                      ocd->ocd_version > LUSTRE_VERSION_CODE ?
+                                        "old" : "new",
                                       LUSTRE_VERSION_STRING);
                                 ptlrpc_deactivate_import(imp);
                                 IMPORT_SET_STATE(imp, LUSTRE_IMP_CLOSED);


May also be some more change needed in import.c, where other ocd_version
checking is done.

_______________________________________________
Lustre-devel mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-devel

Reply via email to