- Update to upstream 0.10.0 (see also NEWS.md) * The `multipathd show daemon` command now shows `(reconfigure pending)` if a reconfiguration has been triggered but not finished yet. * Refactored the path checker loop. Paths are now checked for each multipath map in turn * Renamed public functions, variables, and macros to comply with the glibc policy for reserved names (gh#opensvc/multipath-tools#91) * Fixed bug that caused queueing to be always disabled if flushing a map failed (bug introduced in 0.9.8). (bsc#1229898) * Fixed failure to remove maps even with `deferred_remove` (bug introduced in 0.9.9). (bsc#1229898) * Fixed old mpathpersist bug leading to the error message "configured reservation key doesn't match: 0x0" when `reservation_key` was configured in the multipaths section of `multipath.conf`. (bsc#1228926, gh#opensvc/multipath-tools#92) * Fixed output of `multipath -t` and `multipath -T` for the options `force_sync` and `retrigger_tries`. (bsc#1229898, gh#opensvc/multipath-tools#88) * Fixed adding maps by WWID in CLI (command `add map $WWID`). (bsc#1229898) (bug introduced in 0.9.8). (bsc#1229898) (bug introduced in 0.9.9). (bsc#1229898) OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=344
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;
|
|
}
|