Re: [dm-devel] [PATCH 7/8] libmultipath: split set_int to enable reuse

2021-11-05 Thread Benjamin Marzinski
On Thu, Nov 04, 2021 at 08:54:11PM +, Martin Wilck wrote: > On Wed, 2021-10-06 at 15:04 -0500, Benjamin Marzinski wrote: > > Split the code that does the actual value parsing out of set_int(), > > into > > a helper function, do_set_int(), so that it can be used by other > > handlers. These func

[dm-devel] [PATCH 7/8] libmultipath: split set_int to enable reuse

2021-10-06 Thread Benjamin Marzinski
Split the code that does the actual value parsing out of set_int(), into a helper function, do_set_int(), so that it can be used by other handlers. These functions no longer set the config value at all, when they have invalid input. Signed-off-by: Benjamin Marzinski --- libmultipath/dict.c | 82