From: Benjamin Marzinski <bmarzins@redhat.com>
To: Martin Wilck <martin.wilck@suse.com>
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>,
Alice Frosi <afrosi@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Martin Wilck <mwilck@suse.com>,
dm-devel@lists.linux.dev
Subject: Re: [PATCH v3 00/10] multipath-tools: provide pathname and abstract sockets
Date: Mon, 17 Feb 2025 17:58:45 -0500 [thread overview]
Message-ID: <Z7O_Jecl1zz51xh0@redhat.com> (raw)
In-Reply-To: <20250214221011.136762-1-mwilck@suse.com>
On Fri, Feb 14, 2025 at 11:10:01PM +0100, Martin Wilck wrote:
> This set is an attempt to fix https://github.com/opensvc/multipath-tools/issues/111
For all patches except for 08, which I have a question about:
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
>
> Changes v2 -> v3:
>
> Many, as a result of further discussions on GitHub. multipathd will now open
> both the abstract socket and the pathname socket /run/multipathd.socket by
> default, and client programs will try both sockets before giving up. The
> "use_regular_socket=1" build parameter is not necessary any more.
>
> Note that we'd switched from the regular socket "/var/run/multipath.sock" to
> an abstract socket in bb89077 ("multipathd: switch to abstract sockets for CLI
> commands") in multipath-tools 0.5.0. The rationale back then was that creating
> a pathname socket might fail if the directory structure isn't set up yet. As
> we now create both, and fail only if neither could be created, and as there is
> the early /run directory on modern systems, this argument shouldn't apply to
> this patch set. The name of the socket has been changed in order to indicate
> that the new approach is different from the old one.
>
> Changes v1 -> v2:
>
> - Introduced the mpath_fill_sockaddr() helper to cleanup struct sockaddr_un handling,
> in response to comments from Ben Marzinski on GitHub.
> - Fixed double remove of multipathd.socket during "make clean" (Ben).
>
> Martin Wilck (10):
> multipath-tools: move DEFAULT_SOCKET definition into Makefile.inc
> multipath-tools: add helper mpath_fill_sockaddr__()
> libmpathutil: add support for Unix pathname sockets
> libmpathutil: move systemd_listen_fds() support into multipathd
> multipathd: make uxsock_listen() take a pointer to fd
> multipathd: allow receiving two socket fds from systemd
> multipathd: listen on pathname and abstract socket by default
> libmpathcmd: try both abstract and pathname sockets
> libmpathcmd: honor MULTIPATH_SOCKET_NAME environment variable
> multipathd: honor MULTIPATH_SOCKET_NAME environment variable
>
> .gitignore | 1 +
> Makefile.inc | 10 +++-
> create-config.mk | 1 +
> libmpathcmd/mpath_cmd.c | 25 ++++++----
> libmpathcmd/mpath_cmd.h | 1 -
> libmpathcmd/mpath_fill_sockaddr.c | 32 +++++++++++++
> libmpathutil/uxsock.c | 41 +++++++---------
> libmultipath/defaults.h | 1 -
> multipathd/Makefile | 4 +-
> multipathd/main.c | 48 +++++++++++++++++--
> ...multipathd.socket => multipathd.socket.in} | 3 +-
> multipathd/uxlsnr.c | 34 +++++++++----
> multipathd/uxlsnr.h | 3 +-
> 13 files changed, 149 insertions(+), 55 deletions(-)
> create mode 100644 libmpathcmd/mpath_fill_sockaddr.c
> rename multipathd/{multipathd.socket => multipathd.socket.in} (84%)
>
> --
> 2.48.1
prev parent reply other threads:[~2025-02-17 22:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-14 22:10 [PATCH v3 00/10] multipath-tools: provide pathname and abstract sockets Martin Wilck
2025-02-14 22:10 ` [PATCH v3 01/10] multipath-tools: move DEFAULT_SOCKET definition into Makefile.inc Martin Wilck
2025-02-14 22:10 ` [PATCH v3 02/10] multipath-tools: add helper mpath_fill_sockaddr__() Martin Wilck
2025-02-17 22:52 ` Benjamin Marzinski
2025-02-14 22:10 ` [PATCH v3 03/10] libmpathutil: add support for Unix pathname sockets Martin Wilck
2025-02-14 22:10 ` [PATCH v3 04/10] libmpathutil: move systemd_listen_fds() support into multipathd Martin Wilck
2025-02-17 22:55 ` Benjamin Marzinski
2025-02-14 22:10 ` [PATCH v3 05/10] multipathd: make uxsock_listen() take a pointer to fd Martin Wilck
2025-02-14 22:10 ` [PATCH v3 06/10] multipathd: allow receiving two socket fds from systemd Martin Wilck
2025-02-14 22:10 ` [PATCH v3 07/10] multipathd: listen on pathname and abstract socket by default Martin Wilck
2025-02-14 22:10 ` [PATCH v3 08/10] libmpathcmd: try both abstract and pathname sockets Martin Wilck
2025-02-17 22:57 ` Benjamin Marzinski
2025-02-18 0:05 ` Martin Wilck
2025-02-14 22:10 ` [PATCH v3 09/10] libmpathcmd: honor MULTIPATH_SOCKET_NAME environment variable Martin Wilck
2025-02-14 22:10 ` [PATCH v3 10/10] multipathd: " Martin Wilck
2025-02-17 22:58 ` Benjamin Marzinski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z7O_Jecl1zz51xh0@redhat.com \
--to=bmarzins@redhat.com \
--cc=afrosi@redhat.com \
--cc=christophe.varoqui@opensvc.com \
--cc=dm-devel@lists.linux.dev \
--cc=martin.wilck@suse.com \
--cc=mwilck@suse.com \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.