Resolves: RHEL-19177
This commit is contained in:
parent
783648b9cf
commit
8636f06286
@ -1,6 +1,6 @@
|
||||
Name: sanlock
|
||||
Version: 3.9.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: A shared storage lock manager
|
||||
|
||||
License: GPLv2 and GPLv2+ and LGPLv2+
|
||||
@ -54,7 +54,7 @@ make -C python \
|
||||
|
||||
|
||||
install -D -m 0644 init.d/sanlock.service.native $RPM_BUILD_ROOT/%{_unitdir}/sanlock.service
|
||||
install -D -m 0755 init.d/wdmd $RPM_BUILD_ROOT/usr/lib/systemd/systemd-wdmd
|
||||
install -D -m 0755 init.d/wdmd $RPM_BUILD_ROOT/%{_libdir}/systemd/systemd-wdmd
|
||||
install -D -m 0644 init.d/wdmd.service.native $RPM_BUILD_ROOT/%{_unitdir}/wdmd.service
|
||||
|
||||
install -D -m 0644 src/logrotate.sanlock \
|
||||
@ -87,7 +87,7 @@ getent passwd sanlock > /dev/null || /usr/sbin/useradd \
|
||||
%systemd_postun wdmd.service sanlock.service
|
||||
|
||||
%files
|
||||
/usr/lib/systemd/systemd-wdmd
|
||||
%{_libdir}/systemd/systemd-wdmd
|
||||
%{_unitdir}/sanlock.service
|
||||
%{_unitdir}/wdmd.service
|
||||
%{_sbindir}/sanlock
|
||||
@ -156,6 +156,9 @@ developing applications that use %{name}.
|
||||
%{_libdir}/pkgconfig/libsanlock_client.pc
|
||||
|
||||
%changelog
|
||||
* Fri Dec 15 2023 David Teigland <teigland@redhat.com> - 3.9.0-2
|
||||
- fix rpm issues
|
||||
|
||||
* Wed Dec 13 2023 David Teigland <teigland@redhat.com> - 3.9.0-1
|
||||
- rebase to new upstream release
|
||||
|
||||
|
26
tests/scripts/run_tests.sh
Executable file
26
tests/scripts/run_tests.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
sanlock daemon -w 0
|
||||
|
||||
gcc sanlk_load.c -lrt -laio -lblkid -lsanlock -o sanlk_load
|
||||
|
||||
dd if=/dev/zero of=loopfile0 bs=1M count=10 oflag=direct
|
||||
dd if=/dev/zero of=loopfile1 bs=1M count=10 oflag=direct
|
||||
|
||||
losetup /dev/loop0 loopfile0
|
||||
losetup /dev/loop1 loopfile1
|
||||
|
||||
./sanlk_load init /dev/loop 2 8
|
||||
|
||||
./sanlk_load rand /dev/loop -s 2 -r 8 -S 30 -e 1 -i 1
|
||||
|
||||
[ $? -ne 0 ] && echo "sanlk_load error" >&2 && exit 1
|
||||
|
||||
sanlock shutdown -f 1
|
||||
|
||||
losetup -d /dev/loop0
|
||||
losetup -d /dev/loop1
|
||||
|
||||
rm loopfile0
|
||||
rm loopfile1
|
||||
|
1111
tests/scripts/sanlk_load.c
Normal file
1111
tests/scripts/sanlk_load.c
Normal file
File diff suppressed because it is too large
Load Diff
15
tests/tests.yml
Normal file
15
tests/tests.yml
Normal file
@ -0,0 +1,15 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic # this is a standard test role, it takes care of the test environment, logging, archiving results..
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- simple:
|
||||
dir: scripts
|
||||
run: ./run_tests.sh
|
||||
required_packages:
|
||||
- sanlock
|
||||
- sanlock-devel
|
||||
- gcc
|
||||
- libaio-devel
|
||||
- libblkid-devel
|
Loading…
Reference in New Issue
Block a user