diff --git a/libmpathpersist-example-old.c b/libmpathpersist-example-old.c deleted file mode 100644 index 19968e4..0000000 --- a/libmpathpersist-example-old.c +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This is a minimal skeleton for code using libmpathpersist. - * Compile with "-lmpathpersist -lmultipath -ludev". - * - * Header files for libmultipath are intentionally not included - * in the multipath-tools-devel package, because libmultipath has - * no well defined API for external programs at this time. - */ - -#include -#include - -struct udev *udev; -/* - * logsink determines where libmultipath log messages go - * 1 - log to syslog only - * -1 - log to syslog and stderr - * 0 - log to syslog and stderr, with timestamps - */ -int logsink; - -static struct config *conf; - -struct config *get_multipath_config(void) { - return conf; -} - -void put_multipath_config(struct config* c) -{ -} - -int main(void) -{ - udev = udev_new(); - conf = mpath_lib_init(); - if(!conf) { - udev_unref(udev); - return 1; - } - return 0; -} diff --git a/multipath-tools-0.9.8+83+suse.bcae610.obscpio b/multipath-tools-0.9.8+83+suse.bcae610.obscpio index c29d38c..0660bfe 100644 --- a/multipath-tools-0.9.8+83+suse.bcae610.obscpio +++ b/multipath-tools-0.9.8+83+suse.bcae610.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9c73ba2bc7eb875c0cf6d6d9abd6e41d8aa1b9bf5dfed81435b5695e3d2316eb +oid sha256:dca108f63fca60e6069bf4953f4f0f99886f2a43f4957c61c3388cc36e0053e1 size 2868236 diff --git a/multipath-tools.changes b/multipath-tools.changes index d6a1bba..d28eccd 100644 --- a/multipath-tools.changes +++ b/multipath-tools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 27 10:12:35 UTC 2024 - Martin Wilck + +- Remove libmpathpersist-example-old.c, which has been obsolete + since multipath-tools 0.8.6. + ------------------------------------------------------------------- Mon Feb 26 11:57:03 UTC 2024 - Martin Wilck diff --git a/multipath-tools.spec b/multipath-tools.spec index 2346fc6..b4da91e 100644 --- a/multipath-tools.spec +++ b/multipath-tools.spec @@ -49,7 +49,6 @@ Source2: dont-del-part-nodes.rules # Dracut conf file to make sure 11-dm-parts.rules is included in initrd Source3: dm-parts.conf Source4: libmpathpersist-example.c -Source5: libmpathpersist-example-old.c Source6: multipath-dracut.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} @@ -163,7 +162,6 @@ This package provides development files and documentation for libdmmp. %prep %setup -q -n multipath-tools-%{version} cp %{SOURCE4} . -cp %{SOURCE5} . %autopatch -p1 %build @@ -275,7 +273,6 @@ exit 0 /usr/include/mpath_valid.h %{_mandir}/man3/mpath_persistent_* %doc libmpathpersist-example.c -%doc libmpathpersist-example-old.c %files -n kpartx %license LICENSES/GPL-2.0