ocfs2-tools/0003-Hard-code-protocol-versions.patch

31 lines
1.2 KiB
Diff

From 1b81ab8b660db633aff609bfae4609efe24b9b93 Mon Sep 17 00:00:00 2001
From: Goldwyn Rodrigues <goldwyn@localhost.localdomain>
Date: Sat, 27 Jul 2013 14:28:48 -0500
Subject: [PATCH 3/5] Hard-code protocol versions.
This is just a work around. Protocol detection needs some work.
---
ocfs2_controld/main.c | 6 ++++++
1 file changed, 6 insertions(+)
Index: ocfs2-tools-1.8.2+git.1361836695.ff84eb5/ocfs2_controld/main.c
===================================================================
--- ocfs2-tools-1.8.2+git.1361836695.ff84eb5.orig/ocfs2_controld/main.c 2013-07-31 08:21:50.088759215 -0500
+++ ocfs2-tools-1.8.2+git.1361836695.ff84eb5/ocfs2_controld/main.c 2013-07-31 08:22:27.023854129 -0500
@@ -617,9 +617,15 @@ static void cpg_joined(int first)
log_debug("CPG is live, we are %s first daemon",
first ? "the" : "not the");
+ daemon_running_proto.pv_major = 1;
+ daemon_running_proto.pv_minor = 0;
+
log_debug("Daemon protocol is %d.%d",
daemon_running_proto.pv_major,
daemon_running_proto.pv_minor);
+
+ fs_running_proto.pv_major = 1;
+ fs_running_proto.pv_minor = 0;
log_debug("fs protocol is %d.%d",
fs_running_proto.pv_major, fs_running_proto.pv_minor);