Accepting request 687475 from home:jfehlig:branches:Virtualization
- Update to sanlock 3.7.0 - allow setting max_sectors_kb - configurable sector size and align size - support SANLOCK_RUN_DIR and SANLOCK_PRIVILEGED environment variables - Dropped patches: sanlock-old_blkid.patch, suse-fix-link-errors.patch OBS-URL: https://build.opensuse.org/request/show/687475 OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=48
This commit is contained in:
parent
92e72bfed7
commit
f7c6cf369e
30
revert-5d535c0d-py2.patch
Normal file
30
revert-5d535c0d-py2.patch
Normal file
@ -0,0 +1,30 @@
|
||||
commit d4fc2914b1847202d9dc26df89954766b27921d6
|
||||
Author: Jim Fehlig <jfehlig@suse.com>
|
||||
Date: Thu Mar 21 11:20:29 2019 -0600
|
||||
|
||||
Revert "python: Fix build on Fedora 29"
|
||||
|
||||
This reverts commit 5d535c0d800a84665879f6dc50c87915cf6657da. We
|
||||
don't want it on SUSE where there is no python2.
|
||||
|
||||
Index: sanlock-3.7.0/python/Makefile
|
||||
===================================================================
|
||||
--- sanlock-3.7.0.orig/python/Makefile
|
||||
+++ sanlock-3.7.0/python/Makefile
|
||||
@@ -5,13 +5,13 @@
|
||||
# of the GNU General Public License v.2.
|
||||
|
||||
all:
|
||||
- python2 setup.py build
|
||||
+ python setup.py build
|
||||
|
||||
inplace:
|
||||
- python2 setup.py build_ext --inplace
|
||||
+ python setup.py build_ext --inplace
|
||||
|
||||
install:
|
||||
- python2 setup.py install --root=$(DESTDIR)
|
||||
+ python setup.py install --root=$(DESTDIR)
|
||||
|
||||
clean:
|
||||
rm -rf build
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a05f053c68e873e0f6df6e1c6e667e2eac89f110456b69615906a79e5e01ece2
|
||||
size 221666
|
3
sanlock-3.7.0.tar.gz
Normal file
3
sanlock-3.7.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0dd4cf17c5989d9110991261a6a6efee22e8e72a6fbde8a1690ed78590c64062
|
||||
size 250375
|
@ -1,24 +0,0 @@
|
||||
Index: src/diskio.c
|
||||
===================================================================
|
||||
--- src/diskio.c.orig
|
||||
+++ src/diskio.c
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
static int set_disk_properties(struct sync_disk *disk)
|
||||
{
|
||||
+#ifdef BLKID_VERSION
|
||||
blkid_probe probe;
|
||||
blkid_topology topo;
|
||||
uint32_t sector_size, ss_logical, ss_physical;
|
||||
@@ -62,7 +63,10 @@ static int set_disk_properties(struct sy
|
||||
ss_physical, disk->path);
|
||||
return -1;
|
||||
}
|
||||
-
|
||||
+#else
|
||||
+ /* HACK, should really read this from sysfs */
|
||||
+ uint32_t sector_size = 512;
|
||||
+#endif
|
||||
disk->sector_size = sector_size;
|
||||
return 0;
|
||||
}
|
@ -2,8 +2,8 @@ Index: python/Makefile
|
||||
===================================================================
|
||||
--- python/Makefile.orig
|
||||
+++ python/Makefile
|
||||
@@ -8,7 +8,7 @@ all:
|
||||
python setup.py build
|
||||
@@ -11,7 +11,7 @@ inplace:
|
||||
python setup.py build_ext --inplace
|
||||
|
||||
install:
|
||||
- python setup.py install --root=$(DESTDIR)
|
||||
|
@ -1,7 +1,7 @@
|
||||
Index: sanlock-3.6.0/python/sanlock.c
|
||||
Index: sanlock-3.7.0/python/sanlock.c
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/python/sanlock.c
|
||||
+++ sanlock-3.6.0/python/sanlock.c
|
||||
--- sanlock-3.7.0.orig/python/sanlock.c
|
||||
+++ sanlock-3.7.0/python/sanlock.c
|
||||
@@ -12,6 +12,10 @@
|
||||
#include <sanlock_admin.h>
|
||||
#include <sanlock_direct.h>
|
||||
@ -31,7 +31,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
/* Functions prototypes */
|
||||
static void __set_exception(int en, char *msg) __sets_exception;
|
||||
static int __parse_resource(PyObject *obj, struct sanlk_resource **res_ret) __neg_sets_exception;
|
||||
@@ -102,14 +117,27 @@ __parse_resource(PyObject *obj, struct s
|
||||
@@ -103,14 +118,27 @@ __parse_resource(PyObject *obj, struct s
|
||||
path = PyTuple_GetItem(tuple, 0);
|
||||
offset = PyTuple_GetItem(tuple, 1);
|
||||
|
||||
@ -59,7 +59,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
}
|
||||
|
||||
if (p == NULL) {
|
||||
@@ -122,7 +150,11 @@ __parse_resource(PyObject *obj, struct s
|
||||
@@ -123,7 +151,11 @@ __parse_resource(PyObject *obj, struct s
|
||||
if (offset == NULL) {
|
||||
res->disks[i].offset = 0;
|
||||
} else {
|
||||
@ -71,7 +71,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,7 +181,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
@@ -150,7 +182,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: host_id */
|
||||
@ -83,7 +83,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "host_id", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -157,7 +193,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
@@ -158,7 +194,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: generation */
|
||||
@ -95,7 +95,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "generation", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -165,7 +205,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
@@ -166,7 +206,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: timestamp */
|
||||
@ -107,7 +107,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "timestamp", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -173,7 +217,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
@@ -174,7 +218,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: io_timeout */
|
||||
@ -119,7 +119,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "io_timeout", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -181,7 +229,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
@@ -182,7 +230,11 @@ __hosts_to_list(struct sanlk_host *hss,
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: flags */
|
||||
@ -131,7 +131,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "flags", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -220,7 +272,11 @@ py_register(PyObject *self __unused, PyO
|
||||
@@ -225,7 +277,11 @@ py_register(PyObject *self __unused, PyO
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
}
|
||||
|
||||
/* get_alignment */
|
||||
@@ -253,7 +309,11 @@ py_get_alignment(PyObject *self __unused
|
||||
@@ -258,7 +314,11 @@ py_get_alignment(PyObject *self __unused
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
}
|
||||
|
||||
/* init_lockspace */
|
||||
@@ -439,7 +499,11 @@ py_read_lockspace(PyObject *self __unuse
|
||||
@@ -456,7 +516,11 @@ py_read_lockspace(PyObject *self __unuse
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: lockspace */
|
||||
@ -167,7 +167,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_info, "lockspace", ls_entry);
|
||||
Py_DECREF(ls_entry);
|
||||
@@ -447,7 +511,11 @@ py_read_lockspace(PyObject *self __unuse
|
||||
@@ -464,7 +528,11 @@ py_read_lockspace(PyObject *self __unuse
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: iotimeout */
|
||||
@ -179,7 +179,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_info, "iotimeout", ls_entry);
|
||||
Py_DECREF(ls_entry);
|
||||
@@ -515,7 +583,11 @@ py_read_resource(PyObject *self __unused
|
||||
@@ -538,7 +606,11 @@ py_read_resource(PyObject *self __unused
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: lockspace */
|
||||
@ -191,7 +191,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(rs_info, "lockspace", rs_entry);
|
||||
Py_DECREF(rs_entry);
|
||||
@@ -523,7 +595,11 @@ py_read_resource(PyObject *self __unused
|
||||
@@ -546,7 +618,11 @@ py_read_resource(PyObject *self __unused
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: resource */
|
||||
@ -203,7 +203,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(rs_info, "resource", rs_entry);
|
||||
Py_DECREF(rs_entry);
|
||||
@@ -804,7 +880,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
@@ -832,7 +908,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: lockspace */
|
||||
@ -215,7 +215,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "lockspace", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -812,7 +892,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
@@ -840,7 +920,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: host_id */
|
||||
@ -227,7 +227,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "host_id", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -820,7 +904,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
@@ -848,7 +932,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: path */
|
||||
@ -239,7 +239,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "path", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -828,7 +916,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
@@ -856,7 +944,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: offset */
|
||||
@ -251,7 +251,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "offset", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -836,7 +928,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
@@ -864,7 +956,11 @@ py_get_lockspaces(PyObject *self __unuse
|
||||
goto exit_fail;
|
||||
|
||||
/* fill the dictionary information: flags */
|
||||
@ -263,7 +263,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
goto exit_fail;
|
||||
rv = PyDict_SetItemString(ls_entry, "flags", ls_value);
|
||||
Py_DECREF(ls_value);
|
||||
@@ -958,7 +1054,11 @@ py_acquire(PyObject *self __unused, PyOb
|
||||
@@ -986,7 +1082,11 @@ py_acquire(PyObject *self __unused, PyOb
|
||||
/* prepare the resource version */
|
||||
if (version != Py_None) {
|
||||
res->flags |= SANLK_RES_LVER;
|
||||
@ -275,7 +275,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
if (res->lver == -1) {
|
||||
__set_exception(EINVAL, "Unable to convert the version value");
|
||||
goto exit_fail;
|
||||
@@ -1074,7 +1174,11 @@ py_request(PyObject *self __unused, PyOb
|
||||
@@ -1102,7 +1202,11 @@ py_request(PyObject *self __unused, PyOb
|
||||
flags = SANLK_REQUEST_NEXT_LVER;
|
||||
} else {
|
||||
res->flags |= SANLK_RES_LVER;
|
||||
@ -287,7 +287,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
if (res->lver == -1) {
|
||||
__set_exception(EINVAL, "Unable to convert the version value");
|
||||
goto exit_fail;
|
||||
@@ -1189,7 +1293,11 @@ py_killpath(PyObject *self __unused, PyO
|
||||
@@ -1217,7 +1321,11 @@ py_killpath(PyObject *self __unused, PyO
|
||||
size_t arg_len;
|
||||
|
||||
item = PyList_GetItem(argslist, i);
|
||||
@ -299,7 +299,7 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
|
||||
if (p == NULL) {
|
||||
__set_exception(EINVAL, "Killpath argument not a string");
|
||||
@@ -1578,32 +1686,83 @@ exit_fail:
|
||||
@@ -1606,32 +1714,83 @@ exit_fail:
|
||||
return excp;
|
||||
}
|
||||
|
||||
@ -386,8 +386,8 @@ Index: sanlock-3.6.0/python/sanlock.c
|
||||
|
||||
/* lockspaces list flags */
|
||||
PYSNLK_INIT_ADD_CONSTANT(SANLK_LSF_ADD, "LSFLAG_ADD");
|
||||
@@ -1628,4 +1787,8 @@ initsanlock(void)
|
||||
PYSNLK_INIT_ADD_CONSTANT(SANLK_SETEV_ALL_HOSTS, "SETEV_ALL_HOSTS");
|
||||
@@ -1664,4 +1823,8 @@ initsanlock(void)
|
||||
PYSNLK_INIT_ADD_CONSTANT(SANLK_RES_ALIGN8M, "SANLK_RES_ALIGN8M");
|
||||
|
||||
#undef PYSNLK_INIT_ADD_CONSTANT
|
||||
+
|
||||
|
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 21 20:27:25 UTC 2019 - Jim Fehlig <jfehlig@suse.com>
|
||||
|
||||
- Update to sanlock 3.7.0
|
||||
- allow setting max_sectors_kb
|
||||
- configurable sector size and align size
|
||||
- support SANLOCK_RUN_DIR and SANLOCK_PRIVILEGED environment
|
||||
variables
|
||||
- Dropped patches:
|
||||
sanlock-old_blkid.patch, suse-fix-link-errors.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 26 16:36:05 UTC 2018 - jfehlig@suse.com
|
||||
|
||||
|
17
sanlock.spec
17
sanlock.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package sanlock
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -28,7 +28,7 @@
|
||||
%endif
|
||||
%bcond_without python2
|
||||
Name: sanlock
|
||||
Version: 3.6.0
|
||||
Version: 3.7.0
|
||||
Release: 0
|
||||
Summary: A shared disk lock manager
|
||||
License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||
@ -40,14 +40,12 @@ Source2: sysconfig.wdmd
|
||||
Source3: fence_sanlockd.init
|
||||
# Upstream patches
|
||||
# SUSE patches
|
||||
Patch100: sanlock-SCHED_RESET_ON_FORK-undefined.patch
|
||||
Patch101: sanlock-python-prefix.patch
|
||||
Patch102: sanlock-old_blkid.patch
|
||||
Patch100: revert-5d535c0d-py2.patch
|
||||
Patch101: sanlock-SCHED_RESET_ON_FORK-undefined.patch
|
||||
Patch102: sanlock-python-prefix.patch
|
||||
Patch103: suse-systemd.patch
|
||||
Patch104: suse-no-date-time.patch
|
||||
# bsc#1030060
|
||||
Patch105: suse-fix-link-errors.patch
|
||||
Patch106: sanlock-python3.patch
|
||||
Patch105: sanlock-python3.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: libaio-devel
|
||||
BuildRequires: pkgconfig
|
||||
@ -129,13 +127,12 @@ common sanlock lockspace.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch100
|
||||
%patch100 -p1
|
||||
%patch101
|
||||
%patch102
|
||||
%patch103 -p1
|
||||
%patch104 -p1
|
||||
%patch105 -p1
|
||||
%patch106 -p1
|
||||
|
||||
%build
|
||||
# upstream does not require configure
|
||||
|
@ -1,65 +0,0 @@
|
||||
Index: sanlock-3.6.0/fence_sanlock/Makefile
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/fence_sanlock/Makefile
|
||||
+++ sanlock-3.6.0/fence_sanlock/Makefile
|
||||
@@ -35,7 +35,7 @@ CFLAGS += -DVERSION=\"$(VER)\" -I../src
|
||||
CFLAGS += -fPIE -DPIE
|
||||
|
||||
LDFLAGS = -Wl,-z,now -Wl,-z,relro -pie
|
||||
-LDADD = -lrt -laio -lblkid -lsanlock -lwdmd
|
||||
+LDADD = -lsanlock -lwdmd -lrt -laio -lblkid
|
||||
|
||||
all: $(TARGET1) $(TARGET2)
|
||||
|
||||
Index: sanlock-3.6.0/src/Makefile
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/src/Makefile
|
||||
+++ sanlock-3.6.0/src/Makefile
|
||||
@@ -96,17 +96,16 @@ CFLAGS += -DVERSION=\"$(VER)\"
|
||||
CMD_CFLAGS = $(CFLAGS) -fPIE -DPIE
|
||||
|
||||
CMD_LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie
|
||||
-CMD_LDADD += -lpthread -luuid -lrt -laio -lblkid -lsanlock -L../wdmd -lwdmd
|
||||
+CMD_LDADD += -lsanlock -L../wdmd -lwdmd -lpthread -luuid -lrt -laio -lblkid
|
||||
|
||||
-LIB_ENTIRE_LDFLAGS += -lpthread -lrt -laio -lblkid -L../wdmd -lwdmd
|
||||
LIB_ENTIRE_LDFLAGS += -Wl,-z,relro -pie
|
||||
-
|
||||
+LIB_ENTIRE_LDADD += -L../wdmd -lwdmd -lpthread -lrt -laio -lblkid
|
||||
LIB_CLIENT_LDFLAGS += -Wl,-z,relro -pie
|
||||
|
||||
all: $(LIBSO_ENTIRE_TARGET) $(LIBSO_CLIENT_TARGET) $(CMD_TARGET) $(LIBPC_ENTIRE_TARGET) $(LIBPC_CLIENT_TARGET)
|
||||
|
||||
-$(LIBSO_ENTIRE_TARGET): $(LIB_ENTIRE_SOURCE)
|
||||
- $(CC) $(CFLAGS) $(LIB_ENTIRE_LDFLAGS) -shared -fPIC -o $@ -Wl,-soname=$(LIB_ENTIRE_TARGET).so.$(SOMAJOR) $^
|
||||
+$(LIBSO_ENTIRE_TARGET):
|
||||
+ $(CC) $(CFLAGS) $(LIB_ENTIRE_LDFLAGS) -shared -fPIC -o $@ -Wl,-soname=$(LIB_ENTIRE_TARGET).so.$(SOMAJOR) $(LIB_ENTIRE_SOURCE) $(LIB_ENTIRE_LDADD) $^
|
||||
ln -sf $(LIBSO_ENTIRE_TARGET) $(LIB_ENTIRE_TARGET).so
|
||||
ln -sf $(LIBSO_ENTIRE_TARGET) $(LIB_ENTIRE_TARGET).so.$(SOMAJOR)
|
||||
|
||||
Index: sanlock-3.6.0/tests/Makefile
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/tests/Makefile
|
||||
+++ sanlock-3.6.0/tests/Makefile
|
||||
@@ -34,7 +34,7 @@ CFLAGS += -D_GNU_SOURCE -g \
|
||||
-fasynchronous-unwind-tables \
|
||||
-fdiagnostics-show-option
|
||||
|
||||
-LDFLAGS = -lrt -laio -lblkid -lsanlock
|
||||
+LDFLAGS = -lsanlock -lrt -laio -lblkid
|
||||
|
||||
all: $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) $(TARGET5) $(TARGET6) $(TARGET7)
|
||||
|
||||
Index: sanlock-3.6.0/reset/Makefile
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/reset/Makefile
|
||||
+++ sanlock-3.6.0/reset/Makefile
|
||||
@@ -35,7 +35,7 @@ CFLAGS += -DVERSION=\"$(VER)\" -I../src
|
||||
CFLAGS += -fPIE -DPIE
|
||||
|
||||
LDFLAGS = -Wl,-z,now -Wl,-z,relro -pie
|
||||
-LDADD = -lsanlock -lwdmd
|
||||
+LDADD = -lsanlock -lwdmd -lrt -laio -lblkid
|
||||
|
||||
all: $(TARGET1) $(TARGET2)
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: sanlock-3.6.0/src/main.c
|
||||
Index: sanlock-3.7.0/src/main.c
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/src/main.c
|
||||
+++ sanlock-3.6.0/src/main.c
|
||||
@@ -1904,8 +1904,8 @@ static int read_command_line(int argc, c
|
||||
--- sanlock-3.7.0.orig/src/main.c
|
||||
+++ sanlock-3.7.0/src/main.c
|
||||
@@ -2126,8 +2126,8 @@ static int read_command_line(int argc, c
|
||||
}
|
||||
|
||||
if (!strcmp(arg1, "--version") || !strcmp(arg1, "-V")) {
|
||||
@ -13,10 +13,10 @@ Index: sanlock-3.6.0/src/main.c
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
Index: sanlock-3.6.0/fence_sanlock/fence_sanlockd.c
|
||||
Index: sanlock-3.7.0/fence_sanlock/fence_sanlockd.c
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/fence_sanlock/fence_sanlockd.c
|
||||
+++ sanlock-3.6.0/fence_sanlock/fence_sanlockd.c
|
||||
--- sanlock-3.7.0.orig/fence_sanlock/fence_sanlockd.c
|
||||
+++ sanlock-3.7.0/fence_sanlock/fence_sanlockd.c
|
||||
@@ -565,8 +565,7 @@ int main(int argc, char *argv[])
|
||||
print_usage();
|
||||
exit(0);
|
||||
|
@ -1,7 +1,7 @@
|
||||
Index: sanlock-3.6.0/init.d/sanlock.service
|
||||
Index: sanlock-3.7.0/init.d/sanlock.service
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/init.d/sanlock.service
|
||||
+++ sanlock-3.6.0/init.d/sanlock.service
|
||||
--- sanlock-3.7.0.orig/init.d/sanlock.service
|
||||
+++ sanlock-3.7.0/init.d/sanlock.service
|
||||
@@ -5,8 +5,10 @@ Wants=wdmd.service
|
||||
|
||||
[Service]
|
||||
@ -15,10 +15,10 @@ Index: sanlock-3.6.0/init.d/sanlock.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Index: sanlock-3.6.0/init.d/wdmd.service
|
||||
Index: sanlock-3.7.0/init.d/wdmd.service
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/init.d/wdmd.service
|
||||
+++ sanlock-3.6.0/init.d/wdmd.service
|
||||
--- sanlock-3.7.0.orig/init.d/wdmd.service
|
||||
+++ sanlock-3.7.0/init.d/wdmd.service
|
||||
@@ -4,8 +4,10 @@ After=syslog.target
|
||||
|
||||
[Service]
|
||||
@ -32,10 +32,10 @@ Index: sanlock-3.6.0/init.d/wdmd.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Index: sanlock-3.6.0/init.d/fence_sanlockd.service
|
||||
Index: sanlock-3.7.0/init.d/fence_sanlockd.service
|
||||
===================================================================
|
||||
--- sanlock-3.6.0.orig/init.d/fence_sanlockd.service
|
||||
+++ sanlock-3.6.0/init.d/fence_sanlockd.service
|
||||
--- sanlock-3.7.0.orig/init.d/fence_sanlockd.service
|
||||
+++ sanlock-3.7.0/init.d/fence_sanlockd.service
|
||||
@@ -5,8 +5,8 @@ Before=corosync.service
|
||||
|
||||
[Service]
|
||||
|
Loading…
Reference in New Issue
Block a user