]> git.proxmox.com Git - mirror_corosync-qdevice.git/log
mirror_corosync-qdevice.git
5 years agoqdevice-cmap: Fix compiler warning on Sparc/ARM
Jan Friesse [Wed, 8 Aug 2018 10:41:20 +0000 (12:41 +0200)]
qdevice-cmap: Fix compiler warning on Sparc/ARM

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
5 years agotests: Notify process-list after trap was created
Jan Friesse [Wed, 8 Aug 2018 06:04:22 +0000 (08:04 +0200)]
tests: Notify process-list after trap was created

Previously there was no waiting for establish of bash trap.
This may result in situation when sigint/term was send before trap
making test fail.

Solution is to catch the sigusr1 and sigusr2 signals in tests and wait
till these signals are sent by bash after trap is established.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agounix-socket: Fix snprintf warning
Jan Friesse [Wed, 2 May 2018 13:16:03 +0000 (15:16 +0200)]
unix-socket: Fix snprintf warning

Base N on sizeof sun_path instead of strlen of input path.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agotests: enlarge process-list timeouts
Jan Friesse [Fri, 27 Apr 2018 13:34:00 +0000 (15:34 +0200)]
tests: enlarge process-list timeouts

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agotests: process-list add stdlib include
Jan Friesse [Fri, 27 Apr 2018 09:10:46 +0000 (11:10 +0200)]
tests: process-list add stdlib include

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agotests: Fix process-list test to work on FreeBSD
Jan Friesse [Fri, 27 Apr 2018 09:03:20 +0000 (11:03 +0200)]
tests: Fix process-list test to work on FreeBSD

FreeBSD true and false commands are installed in the /usr/bin prefix
instead of Linux /bin.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoFix typo: sucesfully -> successfully
Ferenc Wágner [Tue, 10 Apr 2018 10:47:49 +0000 (12:47 +0200)]
Fix typo: sucesfully -> successfully

Signed-off-by: Ferenc Wágner <wferi@debian.org>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
6 years agoqdevice: optarg should be str in init_from_cmap
Bin Liu [Thu, 19 Apr 2018 08:52:27 +0000 (16:52 +0800)]
qdevice: optarg should be str in init_from_cmap

Signed-off-by: Bin Liu <bliu@suse.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
6 years agospec: Remove unused clean section
Jan Friesse [Thu, 12 Apr 2018 14:10:41 +0000 (16:10 +0200)]
spec: Remove unused clean section

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agomsgio: Remove unused code
Jan Friesse [Tue, 3 Apr 2018 06:58:46 +0000 (08:58 +0200)]
msgio: Remove unused code

Blocking version of send was used in the very early phases of qdevice
development and it's not used any longer, so it make sense to delete
it.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agomsgio: Fix reading of msg longer than PR_INT32_MAX
Jan Friesse [Fri, 23 Mar 2018 16:19:09 +0000 (17:19 +0100)]
msgio: Fix reading of msg longer than PR_INT32_MAX

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoqnetd: Replace strtol by strtonum
Jan Friesse [Fri, 2 Mar 2018 12:31:47 +0000 (13:31 +0100)]
qnetd: Replace strtol by strtonum

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoqdevice: Replace strtol by strtonum
Jan Friesse [Fri, 2 Mar 2018 12:31:19 +0000 (13:31 +0100)]
qdevice: Replace strtol by strtonum

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoAdd safer wrapper of strtoll
Jan Friesse [Wed, 28 Feb 2018 15:34:48 +0000 (16:34 +0100)]
Add safer wrapper of strtoll

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoCheck if user_data can be dereferenced
Jan Friesse [Wed, 3 Jan 2018 15:51:11 +0000 (16:51 +0100)]
Check if user_data can be dereferenced

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoNodelist is set into string not array
Jan Friesse [Wed, 3 Jan 2018 15:12:58 +0000 (16:12 +0100)]
Nodelist is set into string not array

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoFix NULL pointer dereference
Jan Friesse [Wed, 3 Jan 2018 13:52:30 +0000 (14:52 +0100)]
Fix NULL pointer dereference

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoQuote certutils scripts properly
Jan Friesse [Tue, 2 Jan 2018 17:02:35 +0000 (18:02 +0100)]
Quote certutils scripts properly

Also remove unused variables.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoinit: Quote subshell result properly
Jan Friesse [Wed, 28 Feb 2018 15:27:08 +0000 (16:27 +0100)]
init: Quote subshell result properly

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agospec: Modernize spec file a bit
Jan Friesse [Thu, 25 Jan 2018 09:32:42 +0000 (10:32 +0100)]
spec: Modernize spec file a bit

Thanks to Robert-André Mauchin <zebob.m@gmail.com> for spec file review
and comments.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoInitial import from corosync codebase
Jan Friesse [Mon, 22 Jan 2018 14:59:23 +0000 (15:59 +0100)]
Initial import from corosync codebase

Used the code from corosync master
(31ddba64a2726bcedf81eb84df2e2da4846832f7)

Signed-off-by: Jan Friesse <jfriesse@redhat.com>