2010-06-25 14:23:00 +02:00
|
|
|
Index: ocfs2-tools/libo2cb/o2cb_err.et
|
|
|
|
===================================================================
|
2012-08-27 01:53:00 +02:00
|
|
|
--- ocfs2-tools.orig/libo2cb/o2cb_err.et 2012-08-24 10:22:54.000000000 -0500
|
|
|
|
+++ ocfs2-tools/libo2cb/o2cb_err.et 2012-08-24 10:23:03.000000000 -0500
|
2010-06-25 14:23:00 +02:00
|
|
|
@@ -33,6 +33,12 @@ ec O2CB_ET_IO,
|
|
|
|
ec O2CB_ET_SERVICE_UNAVAILABLE,
|
|
|
|
"Unable to access cluster service"
|
|
|
|
|
|
|
|
+ec O2CB_ET_SERVICE_HANDSHAKE_UNAVAILABLE,
|
|
|
|
+ "Unable to access cluster serivce due to bad handshake"
|
|
|
|
+
|
|
|
|
+ec O2CB_ET_SERVICE_DEV_UNAVAILABLE,
|
|
|
|
+ "Unable to access cluster service device"
|
|
|
|
+
|
|
|
|
ec O2CB_ET_INTERNAL_FAILURE,
|
|
|
|
"Internal logic failure"
|
|
|
|
|
|
|
|
Index: ocfs2-tools/libo2cb/o2cb_abi.c
|
|
|
|
===================================================================
|
2012-08-27 01:53:00 +02:00
|
|
|
--- ocfs2-tools.orig/libo2cb/o2cb_abi.c 2012-08-24 10:22:54.000000000 -0500
|
|
|
|
+++ ocfs2-tools/libo2cb/o2cb_abi.c 2012-08-24 10:23:03.000000000 -0500
|
|
|
|
@@ -2367,7 +2367,7 @@ static errcode_t o2cb_control_handshake(
|
2010-06-25 14:23:00 +02:00
|
|
|
if (ret != 0)
|
|
|
|
err = O2CB_ET_IO;
|
|
|
|
else if (!found)
|
|
|
|
- err = O2CB_ET_SERVICE_UNAVAILABLE; /* no match */
|
|
|
|
+ err = O2CB_ET_SERVICE_HANDSHAKE_UNAVAILABLE; /* no match */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2012-08-27 01:53:00 +02:00
|
|
|
@@ -2424,7 +2424,7 @@ errcode_t o2cb_control_open(unsigned int
|
2010-06-25 14:23:00 +02:00
|
|
|
case ENOTDIR:
|
|
|
|
case ENOENT:
|
|
|
|
case EISDIR:
|
|
|
|
- err = O2CB_ET_SERVICE_UNAVAILABLE;
|
|
|
|
+ err = O2CB_ET_SERVICE_DEV_UNAVAILABLE;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case EACCES:
|