[dm-devel] [PATCH 5/5] mpathpersist: add support for prkeys file

Martin Wilck mwilck at suse.com
Fri Sep 8 21:35:38 UTC 2017


On Fri, 2017-09-08 at 13:45 -0500, Benjamin Marzinski wrote:
> When the reservation_key is set to "file", the reservation key needs
> to
> be added to the prkeys file for multipathd to be able to register new
> paths as they are added to the device.  This patch adds support to
> the
> mpathpersist command to message multipathd when a key is registered
> or
> unregistered to either add or remove the mapping from the prkeys
> file.
> 
> With these changes, once a device is configured to use the prkeys
> file,
> running mpathpersist commands will automatically update the prkeys
> file
> as necessary.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
> ---
>  libmpathpersist/mpath_persist.c  | 42 +++++++++++++++++++++++++-----
> ----------
>  libmpathpersist/mpath_updatepr.c | 10 ++++++++++
>  libmpathpersist/mpathpr.h        |  1 +
>  3 files changed, 37 insertions(+), 16 deletions(-)
> 

Reviewed-by: Martin Wilck <mwilck at suse.com>
-- 
Dr. Martin Wilck <mwilck at suse.com>, Tel. +49 (0)911 74053 2107
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)




More information about the dm-devel mailing list