Re: [dm-devel] [RFC PATCH v2 3/3] multipath: add libmpathvalid library

2020-05-01 Thread Benjamin Marzinski
On Tue, Apr 28, 2020 at 09:42:52PM +, Martin Wilck wrote: > On Fri, 2020-04-03 at 01:50 -0500, Benjamin Marzinski wrote: > > +int mpath_get_mode(void) > > +{ > > + int mode; > > + struct config *conf; > > + > > + conf = load_config(DEFAULT_CONFIGFILE); > > By using this, you'd pull in a

Re: [dm-devel] [RFC PATCH v2 3/3] multipath: add libmpathvalid library

2020-04-28 Thread Martin Wilck
On Fri, 2020-04-03 at 01:50 -0500, Benjamin Marzinski wrote: > This library allows other programs to check if a path should be > claimed > by multipath. Currently, it only includes two functions. > mpath_get_mode() get the configured find_multipaths mode. > mpath_is_path() returns whether the

[dm-devel] [RFC PATCH v2 3/3] multipath: add libmpathvalid library

2020-04-03 Thread Benjamin Marzinski
This library allows other programs to check if a path should be claimed by multipath. Currently, it only includes two functions. mpath_get_mode() get the configured find_multipaths mode. mpath_is_path() returns whether the device is claimed by multipath. It optionally also returns the wwid. The