forked from pool/multipath-tools
Accepting request 1152109 from home:mwilck:multipath
- Remove libmpathpersist-example-old.c, which has been obsolete since multipath-tools 0.8.6. OBS-URL: https://build.opensuse.org/request/show/1152109 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=333
This commit is contained in:
parent
c1629460fb
commit
0f762a23ce
@ -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 <mpath_persist.h>
|
|
||||||
#include <libudev.h>
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:9c73ba2bc7eb875c0cf6d6d9abd6e41d8aa1b9bf5dfed81435b5695e3d2316eb
|
oid sha256:dca108f63fca60e6069bf4953f4f0f99886f2a43f4957c61c3388cc36e0053e1
|
||||||
size 2868236
|
size 2868236
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 27 10:12:35 UTC 2024 - Martin Wilck <mwilck@suse.com>
|
||||||
|
|
||||||
|
- 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 <mwilck@suse.com>
|
Mon Feb 26 11:57:03 UTC 2024 - Martin Wilck <mwilck@suse.com>
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ Source2: dont-del-part-nodes.rules
|
|||||||
# Dracut conf file to make sure 11-dm-parts.rules is included in initrd
|
# Dracut conf file to make sure 11-dm-parts.rules is included in initrd
|
||||||
Source3: dm-parts.conf
|
Source3: dm-parts.conf
|
||||||
Source4: libmpathpersist-example.c
|
Source4: libmpathpersist-example.c
|
||||||
Source5: libmpathpersist-example-old.c
|
|
||||||
Source6: multipath-dracut.conf
|
Source6: multipath-dracut.conf
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
@ -163,7 +162,6 @@ This package provides development files and documentation for libdmmp.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n multipath-tools-%{version}
|
%setup -q -n multipath-tools-%{version}
|
||||||
cp %{SOURCE4} .
|
cp %{SOURCE4} .
|
||||||
cp %{SOURCE5} .
|
|
||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -275,7 +273,6 @@ exit 0
|
|||||||
/usr/include/mpath_valid.h
|
/usr/include/mpath_valid.h
|
||||||
%{_mandir}/man3/mpath_persistent_*
|
%{_mandir}/man3/mpath_persistent_*
|
||||||
%doc libmpathpersist-example.c
|
%doc libmpathpersist-example.c
|
||||||
%doc libmpathpersist-example-old.c
|
|
||||||
|
|
||||||
%files -n kpartx
|
%files -n kpartx
|
||||||
%license LICENSES/GPL-2.0
|
%license LICENSES/GPL-2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user