2017-11-06 16:16:39 +01:00
|
|
|
/*
|
|
|
|
* This is a minimal skeleton for code using libmpathpersist.
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
* Compile with "-lmpathpersist -lmultipath -lmpathcmd".
|
2017-11-06 16:16:39 +01:00
|
|
|
*
|
|
|
|
* 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.
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
*
|
|
|
|
* 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.
|
2017-11-06 16:16:39 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <mpath_persist.h>
|
|
|
|
#include <libudev.h>
|
|
|
|
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
struct config *conf;
|
2017-11-06 16:16:39 +01:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
conf = mpath_lib_init();
|
|
|
|
if(!conf) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|