forked from pool/multipath-tools
* multipathd: fix hang during shutdown with queuing maps
(bsc#1238484).
This adds multipathd-queueing.service.
* multipath-tools: make multipathd listen on a pathname socket
(/run/multipathd.socket) besides listening on an abstract socket.
This allows connecting to multipathd from a containerized application
(gh#opensvc/multipath-tools#111). In client mode, applications
linked against libmpathcmd will attempt to connect to the pathname
socket first, and to the abstract socket if this fails.
The MULTIPATH_SOCKET_NAME environment variable can be used to
override the socket name.
* multipathd: trigger uevents for blacklisted paths in reconfigure
(bsc#1236321)
* libmultipath: remove buggy reinstate_paths function
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=353
27 lines
681 B
C
27 lines
681 B
C
/*
|
|
* This is a minimal skeleton for code using libmpathpersist.
|
|
* Compile with "-lmpathpersist -lmultipath -lmpathcmd".
|
|
*
|
|
* 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.
|
|
*
|
|
* With multipath-tools 0.8.6, the sample program can be drastically
|
|
* simplified, see below. Compare with libmpathpersist-example-old.c
|
|
* for 0.8.5 and older. Note that the old code can still be used.
|
|
*/
|
|
|
|
#include <mpath_persist.h>
|
|
#include <libudev.h>
|
|
|
|
struct config *conf;
|
|
|
|
int main(void)
|
|
{
|
|
conf = mpath_lib_init();
|
|
if(!conf) {
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|