diff --git a/fix-pacemaker-libs.patch b/fix-pacemaker-libs.patch new file mode 100644 index 0000000..4f40d76 --- /dev/null +++ b/fix-pacemaker-libs.patch @@ -0,0 +1,13 @@ +Index: ocfs2-tools/ocfs2_controld/Makefile +=================================================================== +--- ocfs2-tools.orig/ocfs2_controld/Makefile 2013-03-21 14:23:20.052598134 -0500 ++++ ocfs2-tools/ocfs2_controld/Makefile 2013-03-21 14:37:56.089354059 -0500 +@@ -67,7 +67,7 @@ DIST_FILES = \ + ocfs2_controld.pcmk: $(PCMK_DAEMON_OBJS) $(LIBO2CB_DEPS) + $(LINK) $(GLIB_LIBS) $(LIBO2CB_LIBS) $(COM_ERR_LIBS) \ + $(OPENAIS_LIBS) $(COROSYNC_LIBS) \ +- $(DLMCONTROL_LIBS) -lcrmcluster -lstonithd ++ $(DLMCONTROL_LIBS) -lcrmcluster -lstonithd -lcrmcommon + + ocfs2_controld.cman: $(CMAN_DAEMON_OBJS) $(LIBO2CB_DEPS) + $(LINK) $(LIBO2CB_LIBS) $(COM_ERR_LIBS) $(OPENAIS_LIBS) \ diff --git a/ocfs2-tools.changes b/ocfs2-tools.changes index b8b0b98..c8ad818 100644 --- a/ocfs2-tools.changes +++ b/ocfs2-tools.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Mar 21 15:00:46 CDT 2013 - rgoldwyn@suse.com + +- Reverted tarball to v1.8.2 +- Added support-for-xvd-devices.patch: Support for xvd devices +- Fixed a couple of rpmlint errors + - libdlm requirement + - devel package grouping changed +- restore-g_list_append.patch is not required for old tarball + ------------------------------------------------------------------- Tue Mar 19 02:54:02 CDT 2013 - rgoldwyn@suse.com diff --git a/ocfs2-tools.spec b/ocfs2-tools.spec index bc46ee3..3ef674c 100644 --- a/ocfs2-tools.spec +++ b/ocfs2-tools.spec @@ -56,7 +56,8 @@ Patch206: ocfs2-tools-resource.patch Patch207: fix-indexed-dirs.patch Patch208: 0001-fswreck-Create-a-loop-in-group-chains.patch Patch209: 0002-Break-a-chain-loop-in-group-desc.patch -Patch210: restore-g_list_append.patch +Patch210: fix-pacemaker-libs.patch +Patch211: support-for-xvd-devices.patch Url: http://oss.oracle.com/projects/ocfs2-tools/ Requires: /sbin/chkconfig Requires: e2fsprogs @@ -65,7 +66,6 @@ Requires: modutils Requires: net-tools PreReq: %insserv_prereq %fillup_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: libdlm Requires: openais %if %suse_version < 1120 # There's no separate kmp for openSUSE 11.2 @@ -97,7 +97,7 @@ This package contains additional tools and a GUI (python-gtk). %package devel Summary: Oracle Cluster File System 2 Development files -Group: System/Filesystems +Group: Development/Libraries/C and C++ Requires: libcom_err Requires: libcom_err-devel Requires: ocfs2-tools = %{version} @@ -137,6 +137,7 @@ managing the file system. %patch208 -p1 %patch209 -p1 %patch210 -p1 +%patch211 -p1 %build export CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}" diff --git a/ocfs2-tools.tar.bz2 b/ocfs2-tools.tar.bz2 index 6c70aac..ee2ad7e 100644 --- a/ocfs2-tools.tar.bz2 +++ b/ocfs2-tools.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:64f3d14752d1c3731255f2680cb980b2d3ac3b4e4ae7cc6e1558a21ee3f73cfe -size 1132271 +oid sha256:590ec4905a486c59f1e2961c3c481d167357494da15042f1877967d16f2aa332 +size 1131319 diff --git a/restore-g_list_append.patch b/restore-g_list_append.patch deleted file mode 100644 index d942589..0000000 --- a/restore-g_list_append.patch +++ /dev/null @@ -1,24 +0,0 @@ -From: Goldwyn Rodrigues -Subject: [PATCH] Fix list_append in jconfig.c - -Patch deb5ade9145f8809f1fde19cf53bdfdf1fb7963e was over-zealous in -removing warnings and g_list_append() got deleted. - -Restore g_list_append() to fix the issue. - -Signed-off-by: Goldwyn Rodrigues ---- - -diff --git a/o2cb_ctl/jconfig.c b/o2cb_ctl/jconfig.c -index bad34ba..79bbddb 100644 ---- a/o2cb_ctl/jconfig.c -+++ b/o2cb_ctl/jconfig.c -@@ -1082,6 +1082,8 @@ JConfigStanza *j_config_add_stanza(JConfig *cf, - g_strdup(stanza_name), - elem); - } -+ else -+ g_list_append(elem, cfs); - - return(cfs); - } /* j_config_add_stanza() */ diff --git a/support-for-xvd-devices.patch b/support-for-xvd-devices.patch new file mode 100644 index 0000000..a35ea72 --- /dev/null +++ b/support-for-xvd-devices.patch @@ -0,0 +1,24 @@ +commit ff84eb5b6e76427f227632d5604703b8584d1b7f +Author: Srinivas Eeda +Date: Mon Feb 25 15:58:15 2013 -0800 + + ocfs2-tools: add support for xvd devices + + It is common for virtual disks to be used with ocfs2 inside a VM. With Xen, these devices are /dev/xvd. This patch allows for xvd devices to be used when using global-heartbeat. + + Signed-off-by: Wim Coekaerts + Acked-by: sunil.mushran@gmail.com + +diff --git a/o2cb_ctl/o2cb_scandisk.c b/o2cb_ctl/o2cb_scandisk.c +index 92e754e..6cd3635 100644 +--- a/o2cb_ctl/o2cb_scandisk.c ++++ b/o2cb_ctl/o2cb_scandisk.c +@@ -128,6 +128,8 @@ static void add_to_list(struct list_head *device_list, struct devnode *node) + add = !strncmp(path->path, "/dev/sd", 7); + if (!add) + add = !strncmp(path->path, "/dev/loop", 9); ++ if (!add) ++ add = !strncmp(path->path, "/dev/xvd", 8); + } + if (add) { + hb = malloc(sizeof(struct hb_devices));