Last-minute patches for multipath-tools
Subsystems (2)
cover Last-minute patches for multipath-tools
From: Martin Wilck <[email protected]>
Hi Christophe, hi Ben,
here are some last-minute fixes that I'd like to have added to the currently pending multipath-tools update. None of them touches any real functionality, except the first one, which I already sent earlier today. Patch 3,4,5 were already included in my github PR (which I'm going to rebase to match this submission). Patch 2 supersedes "multipath-tools: generate abi without version script" from the first version of the Github PR. The rest is new, tidy-up work for libmultipath.version.
Regards
Martin
Martin Wilck (11):
multipathd.service: add dependency on systemd-udevd-kernel.socket
multipath-tools: generate abi with dummy version script
multipath-tools: github abi workflow: don't fail on reference branch
multipath-tools: github workflows: rebuild containers for rolling
distros
multipath tools: github workflows: add coverity workflow
multipath-tools: .mailmap: add some more entries
libmultipath: make orphan_paths() static
libmultipath: make update_pathvec_from_dm() static
libmultipath: remove recv_packet_from_client() libmultipath.version: drop some unused symbols libmultipath.version: sort symbols
.github/workflows/abi.yaml | 2 +- .github/workflows/coverity.yaml | 51 +++++++++++++++++ .github/workflows/native.yaml | 62 +++++++++++++++++++- .mailmap | 7 +++ Makefile.inc | 1 + libdmmp/Makefile | 2 +- libmpathcmd/Makefile | 13 ++++- libmpathpersist/Makefile | 15 ++++- libmpathvalid/Makefile | 16 +++++- libmultipath/Makefile | 13 ++++- libmultipath/libmultipath.version | 95 ++++++++++--------------------- libmultipath/structs_vec.c | 4 +- libmultipath/structs_vec.h | 4 -- libmultipath/uxsock.c | 5 -- libmultipath/uxsock.h | 6 -- multipathd/multipathd.service | 2 + 16 files changed, 203 insertions(+), 95 deletions(-) create mode 100644 .github/workflows/coverity.yaml
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 1/11 multipathd.service: add dependency on systemd-udevd-kernel.socket
From: Martin Wilck <[email protected]>
Since f42d918 ("multipathd: Remove dependency on systemd-udev-settle.service"), multipathd has no dependencies on udev any more. In reality, multipathd depends quite heavily on udev.
multipathd startup succeeds indeed if udevd isn't running. Connecting to the udev monitor netlink socket works, too, and if udevd is started later on, multipathd will receive events over this socket. multipathd doesn't connect to the udev control socket, but it does attempt to trigger uevents using sysfs. For these events to be processed, the udev kernel socket must be listening. For that, it's sufficient to depend on systemd-udevd-kernel.socket, which will start udevd on demand if it isn't running.
--- multipathd/multipathd.service | 2 ++ 1 file changed, 2 insertions(+)
multipathd/multipathd.service +2 -0
@@ -2,6 +2,8 @@ Description=Device-Mapper Multipath Device Controller Before=iscsi.service iscsid.service lvm2-activation-early.service Before=local-fs-pre.target blk-availability.service shutdown.target +Wants=systemd-udevd-kernel.socket +After=systemd-udevd-kernel.socket After=multipathd.socket systemd-remount-fs.service DefaultDependencies=no Conflicts=shutdown.target
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 2/11 multipath-tools: generate abi without version script
In reply to [email protected]From: Martin Wilck <[email protected]>
The purpose of the "abi" makefile target is to detect ABI changes. If using the version script the way we do (bumping major or minor versions), abigail detects a completely different ABI with every bump. This makes it very difficult to figure out actual changes in the code.
This patch fixes that by using "versionless version scripts" for ABI generation. These version scripts just list all exported symbols, using just a single dummy version string. This is better than using no version script at all, because only exported symbols will be compared, whereas without a version script we'd be comparing non-exported symbols, too.
--- Makefile.inc | 1 + libdmmp/Makefile | 2 +- libmpathcmd/Makefile | 13 +++++++++++-- libmpathpersist/Makefile | 15 ++++++++++++--- libmpathvalid/Makefile | 16 +++++++++++++--- libmultipath/Makefile | 13 +++++++++++-- 6 files changed, 49 insertions(+), 11 deletions(-)
Makefile.inc +1 -0
@@ -79,6 +79,7 @@ GZIP = gzip -9 -c RM = rm -f LN = ln -sf INSTALL_PROGRAM = install +NV_VERSION_SCRIPT = $(VERSION_SCRIPT:%.version=%-nv.version) # $(call TEST_CC_OPTION,option,fallback) # Test if the C compiler supports the option.
libdmmp/Makefile +1 -1
@@ -58,7 +58,7 @@ uninstall: $(RM) $(DESTDIR)$(pkgconfdir)/$(PKGFILE) clean: dep_clean - $(RM) core *.a *.o *.gz *.so *.so.* *.abi + $(RM) core *.a *.o *.gz *.so *.so.* *.abi $(NV_VERSION_SCRIPT) $(RM) docs/man/*.gz $(MAKE) -C test clean
libmpathcmd/Makefile +11 -2
@@ -15,7 +15,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ -Wl,--version-script=$(VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@
@@ -33,7 +42,7 @@ uninstall: $(RM) $(DESTDIR)$(includedir)/mpath_cmd.h clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))
libmpathpersist/Makefile +12 -3
@@ -3,7 +3,7 @@ include ../Makefile.inc SONAME = 0 DEVLIB = libmpathpersist.so LIBS = $(DEVLIB).$(SONAME) -VERSION_SCRIPT := libmpathpersist.version +VERSION_SCRIPT:= libmpathpersist.version CFLAGS += $(LIB_CFLAGS) -I$(multipathdir) -I$(mpathpersistdir) -I$(mpathcmddir) LDFLAGS += -L$(multipathdir) -L$(mpathcmddir)
@@ -18,7 +18,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ -Wl,--version-script=$(VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@
@@ -46,7 +55,7 @@ uninstall: $(RM) $(DESTDIR)$(syslibdir)/$(DEVLIB) clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))
libmpathvalid/Makefile +13 -3
@@ -15,10 +15,20 @@ OBJS = mpath_valid.o all: $(LIBS) $(LIBS): $(OBJS) $(VERSION_SCRIPT) - $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) -Wl,--version-script=libmpathvalid.version + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) \ + -Wl,--version-script=$(VERSION_SCRIPT) $(LN) $(LIBS) $(DEVLIB) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) install: $(LIBS) $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(syslibdir)
@@ -33,7 +43,7 @@ uninstall: $(RM) $(DESTDIR)$(includedir)/mpath_valid.h clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))
libmultipath/Makefile +11 -2
@@ -81,7 +81,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@ -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) ../tests/$(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=`basename $@` \
@@ -101,7 +110,7 @@ uninstall: $(RM) $(DESTDIR)$(syslibdir)/$(DEVLIB) clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi nvme-ioctl.c nvme-ioctl.h + $(RM) core *.a *.o *.so *.so.* *.gz *.abi nvme-ioctl.c nvme-ioctl.h $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
Benjamin Marzinski
maintainerRe: [dm-devel] [PATCH 02/11] multipath-tools: generate abi without version script
Quoted 2 lines · On Thu, Dec 02, 2021 at 05:06:43PM +0100, [email protected] wrote:
From: Martin Wilck <[email protected]>
I assume that am supposed to ignore this patch, and look at
"multipath-tools: generate abi with dummy version script"
instead, right?
-Ben
Quoted 186 lines
The purpose of the "abi" makefile target is to detect ABI changes. If using the version script the way we do (bumping major or minor versions), abigail detects a completely different ABI with every bump. This makes it very difficult to figure out actual changes in the code.
This patch fixes that by using "versionless version scripts" for ABI generation. These version scripts just list all exported symbols, using just a single dummy version string. This is better than using no version script at all, because only exported symbols will be compared, whereas without a version script we'd be comparing non-exported symbols, too.
Signed-off-by Martin Wilck <[email protected]>--- Makefile.inc | 1 + libdmmp/Makefile | 2 +- libmpathcmd/Makefile | 13 +++++++++++-- libmpathpersist/Makefile | 15 ++++++++++++--- libmpathvalid/Makefile | 16 +++++++++++++--- libmultipath/Makefile | 13 +++++++++++-- 6 files changed, 49 insertions(+), 11 deletions(-)Makefile.inc +1
-0@@ -79,6 +79,7 @@ GZIP = gzip -9 -c RM = rm -f LN = ln -sf INSTALL_PROGRAM = install +NV_VERSION_SCRIPT = $(VERSION_SCRIPT:%.version=%-nv.version) # $(call TEST_CC_OPTION,option,fallback) # Test if the C compiler supports the option.libdmmp/Makefile +1
-1@@ -58,7 +58,7 @@ uninstall: $(RM) $(DESTDIR)$(pkgconfdir)/$(PKGFILE) clean: dep_clean - $(RM) core *.a *.o *.gz *.so *.so.* *.abi + $(RM) core *.a *.o *.gz *.so *.so.* *.abi $(NV_VERSION_SCRIPT) $(RM) docs/man/*.gz $(MAKE) -C test cleanlibmpathcmd/Makefile +11
-2@@ -15,7 +15,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ -Wl,--version-script=$(VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@@@ -33,7 +42,7 @@ uninstall: $(RM) $(DESTDIR)$(includedir)/mpath_cmd.h clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))libmpathpersist/Makefile +12
-3@@ -3,7 +3,7 @@ include ../Makefile.inc SONAME = 0 DEVLIB = libmpathpersist.so LIBS = $(DEVLIB).$(SONAME) -VERSION_SCRIPT := libmpathpersist.version +VERSION_SCRIPT:= libmpathpersist.version CFLAGS += $(LIB_CFLAGS) -I$(multipathdir) -I$(mpathpersistdir) -I$(mpathcmddir) LDFLAGS += -L$(multipathdir) -L$(mpathcmddir)@@ -18,7 +18,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ -Wl,--version-script=$(VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@@@ -46,7 +55,7 @@ uninstall: $(RM) $(DESTDIR)$(syslibdir)/$(DEVLIB) clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))libmpathvalid/Makefile +13
-3@@ -15,10 +15,20 @@ OBJS = mpath_valid.o all: $(LIBS) $(LIBS): $(OBJS) $(VERSION_SCRIPT) - $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) -Wl,--version-script=libmpathvalid.version + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) \ + -Wl,--version-script=$(VERSION_SCRIPT) $(LN) $(LIBS) $(DEVLIB) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) install: $(LIBS) $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(syslibdir)@@ -33,7 +43,7 @@ uninstall: $(RM) $(DESTDIR)$(includedir)/mpath_valid.h clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))libmultipath/Makefile +11
-2@@ -81,7 +81,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@ -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) ../tests/$(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=`basename $@` \@@ -101,7 +110,7 @@ uninstall: $(RM) $(DESTDIR)$(syslibdir)/$(DEVLIB) clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi nvme-ioctl.c nvme-ioctl.h + $(RM) core *.a *.o *.so *.so.* *.gz *.abi nvme-ioctl.c nvme-ioctl.h $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))Signature · 1 line
2.34.0
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
Re: [dm-devel] [PATCH 02/11] multipath-tools: generate abi without version script
Quoted 10 lines · Benjamin Marzinski
Quoted 2 lines · On Thu, Dec 02, 2021 at 05:06:43PM +0100, [email protected] wrote:
From: Martin Wilck <[email protected]>
I assume that am supposed to ignore this patch, and look at
"multipath-tools: generate abi with dummy version script"
instead, right?
Yes. I'm sorry. This one can be ignored.
Martin
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 2/11 multipath-tools: generate abi with dummy version script
In reply to [email protected]From: Martin Wilck <[email protected]>
The purpose of the "abi" makefile target is to detect ABI changes. If using the version script the way we do (bumping major or minor versions), abigail detects a completely different ABI with every bump. This makes it very difficult to figure out actual changes in the code.
This patch fixes that by using "versionless version scripts" for ABI generation. These version scripts just list all exported symbols, using just a single dummy version string. This is better than using no version script at all, because only exported symbols will be compared, whereas without a version script we'd be comparing non-exported symbols, too.
--- Makefile.inc | 1 + libdmmp/Makefile | 2 +- libmpathcmd/Makefile | 13 +++++++++++-- libmpathpersist/Makefile | 15 ++++++++++++--- libmpathvalid/Makefile | 16 +++++++++++++--- libmultipath/Makefile | 13 +++++++++++-- 6 files changed, 49 insertions(+), 11 deletions(-)
Makefile.inc +1 -0
@@ -79,6 +79,7 @@ GZIP = gzip -9 -c RM = rm -f LN = ln -sf INSTALL_PROGRAM = install +NV_VERSION_SCRIPT = $(VERSION_SCRIPT:%.version=%-nv.version) # $(call TEST_CC_OPTION,option,fallback) # Test if the C compiler supports the option.
libdmmp/Makefile +1 -1
@@ -58,7 +58,7 @@ uninstall: $(RM) $(DESTDIR)$(pkgconfdir)/$(PKGFILE) clean: dep_clean - $(RM) core *.a *.o *.gz *.so *.so.* *.abi + $(RM) core *.a *.o *.gz *.so *.so.* *.abi $(NV_VERSION_SCRIPT) $(RM) docs/man/*.gz $(MAKE) -C test clean
libmpathcmd/Makefile +11 -2
@@ -15,7 +15,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ -Wl,--version-script=$(VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@
@@ -33,7 +42,7 @@ uninstall: $(RM) $(DESTDIR)$(includedir)/mpath_cmd.h clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))
libmpathpersist/Makefile +12 -3
@@ -3,7 +3,7 @@ include ../Makefile.inc SONAME = 0 DEVLIB = libmpathpersist.so LIBS = $(DEVLIB).$(SONAME) -VERSION_SCRIPT := libmpathpersist.version +VERSION_SCRIPT:= libmpathpersist.version CFLAGS += $(LIB_CFLAGS) -I$(multipathdir) -I$(mpathpersistdir) -I$(mpathcmddir) LDFLAGS += -L$(multipathdir) -L$(mpathcmddir)
@@ -18,7 +18,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ -Wl,--version-script=$(VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@
@@ -46,7 +55,7 @@ uninstall: $(RM) $(DESTDIR)$(syslibdir)/$(DEVLIB) clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))
libmpathvalid/Makefile +13 -3
@@ -15,10 +15,20 @@ OBJS = mpath_valid.o all: $(LIBS) $(LIBS): $(OBJS) $(VERSION_SCRIPT) - $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) -Wl,--version-script=libmpathvalid.version + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) \ + -Wl,--version-script=$(VERSION_SCRIPT) $(LN) $(LIBS) $(DEVLIB) -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) install: $(LIBS) $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(syslibdir)
@@ -33,7 +43,7 @@ uninstall: $(RM) $(DESTDIR)$(includedir)/mpath_valid.h clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi + $(RM) core *.a *.o *.so *.so.* *.gz *.abi $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))
libmultipath/Makefile +11 -2
@@ -81,7 +81,16 @@ $(LIBS): $(OBJS) $(VERSION_SCRIPT) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@ -abi: $(LIBS:%.so.0=%.abi) +$(NV_VERSION_SCRIPT): $(VERSION_SCRIPT) + @printf 'NOVERSION {\nglobal:\n' >$@ + @grep -P '^[ \t]+[a-zA-Z_][a-zA-Z0-9_]*;' $< >>$@ + @printf 'local:\n\t*;\n};\n' >>$@ + +$(LIBS:%.so.$(SONAME)=%-nv.so): $(OBJS) $(NV_VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(NV_VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) + +abi: $(LIBS:%.so.$(SONAME)=%-nv.abi) ../tests/$(LIBS): $(OBJS) $(VERSION_SCRIPT) $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=`basename $@` \
@@ -101,7 +110,7 @@ uninstall: $(RM) $(DESTDIR)$(syslibdir)/$(DEVLIB) clean: dep_clean - $(RM) core *.a *.o *.so *.so.* *.gz *.abi nvme-ioctl.c nvme-ioctl.h + $(RM) core *.a *.o *.so *.so.* *.gz *.abi nvme-ioctl.c nvme-ioctl.h $(NV_VERSION_SCRIPT) include $(wildcard $(OBJS:.o=.d))
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 3/11 multipath-tools: github abi workflow: don't fail on reference branch
In reply to [email protected]From: Martin Wilck <[email protected]>
The download action will always retreive the result of the last successful workflow on the reference branch. If the workflow has failed there (because of a difference to the previous workflow), the results won't be used. Thus don't fail on the reference branch, even if there are differences.
--- .github/workflows/abi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.github/workflows/abi.yaml +1 -1
@@ -50,5 +50,5 @@ jobs: name: abi-test path: abi-test - name: fail - if: ${{ steps.compare.outcome == 'failure' }} + if: ${{ env.ABI_BRANCH != github.ref_name && steps.compare.outcome == 'failure' }} run: false
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 4/11 multipath-tools: github workflows: rebuild containers for rolling distros
In reply to [email protected]From: Martin Wilck <[email protected]>
For Debian "sid" and alpine, using a pre-built container makes no sense if this container is rebuilt only once every few months. Rebuild these containers during the test. Also, add Fedora rawhide, which is likely to ship the latest compilers.
Wrt stable distributions, replace fedora-34 with fedora-35 and add Debian 11 (bullseye).
--- .github/workflows/native.yaml | 62 +++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-)
.github/workflows/native.yaml +60 -2
@@ -8,15 +8,17 @@ on: pull_request: jobs: - build-and-test: + stable: runs-on: ubuntu-20.04 strategy: matrix: - os: [buster, jessie, sid, alpine, fedora-34] + os: [buster, jessie, bullseye, fedora-35] arch: ['', '-i386'] exclude: - os: fedora-34 arch: '-i386' + - os: fedora-35 + arch: '-i386' container: mwilck/multipath-build-${{ matrix.os }}${{ matrix.arch }} steps: - name: checkout
@@ -30,3 +32,59 @@ jobs: CC: clang run: make test + rolling: + runs-on: ubuntu-20.04 + strategy: + matrix: + os: ['debian:sid', 'alpine', 'fedora:rawhide'] + arch: ['amd64', 'i386'] + exclude: + - os: 'fedora:rawhide' + arch: 'i386' + container: ${{ matrix.arch }}/${{ matrix.os }} + steps: + - name: update + if: ${{ matrix.os == 'debian:sid' }} + run: apt-get update + - name: dependencies-debian + if: ${{ matrix.os == 'debian:sid' }} + run: > + apt-get install --yes -o APT::Immediate-Configure=0 + gcc clang make pkg-config + libdevmapper-dev + libreadline-dev + libaio-dev + libudev-dev + libjson-c-dev + liburcu-dev + libcmocka-dev + - name: dependencies-alpine + if: ${{ matrix.os == 'alpine' }} + run: > + apk add make gcc clang cmocka + musl-dev lvm2-dev libaio-dev readline-dev ncurses-dev eudev-dev + userspace-rcu-dev json-c-dev cmocka-dev + - name: dependencies-fedora + if: ${{ matrix.os == 'fedora:rawhide' }} + run: > + dnf install -y + make clang gcc pkgconfig + libaio-devel + device-mapper-devel + libselinux-devel + libsepol-devel + readline-devel + ncurses-devel + userspace-rcu-devel + json-c-devel + libcmocka-devel + - name: checkout + uses: actions/checkout@v1 + - name: build and test + run: make test + - name: clean + run: make clean + - name: clang + env: + CC: clang + run: make test
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 5/11 multipath tools: github workflows: add coverity workflow
In reply to [email protected]From: Martin Wilck <[email protected]>
Add a workflow that triggers a coverity static analysis scan. For now, this will only be done on a special branch called "coverity". Pushing to that branch will trigger the workflow.
For this to work, 3 secrets need to be set in the Github repository:
COVERITY_SCAN_EMAIL: the email address for coverity/synopsis accountCOVERITY_SCAN_TOKEN: the coverity / synopsis access tokenCOVERITY_SCAN_PROJECT: the coverity project, e.g. mwilck/multipath-tools
The workflow succeeds if upload of the coverity results was successful. The analysis result will be emailed to the given address.
--- .github/workflows/coverity.yaml | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/coverity.yaml
.github/workflows/coverity.yaml new file +51 -0
@@ -0,0 +1,51 @@ +name: coverity +on: + push: + branches: + - coverity + +jobs: + upload-coverity-scan: + runs-on: ubuntu-20.04 + steps: + - name: checkout + uses: actions/checkout@v2 + - name: dependencies + run: > + sudo apt-get install --yes + gcc make pkg-config + libdevmapper-dev libreadline-dev libaio-dev libsystemd-dev + libudev-dev libjson-c-dev liburcu-dev libcmocka-dev + - name: download coverity + run: > + curl -o cov-analysis-linux64.tar.gz + --form token="$COV_TOKEN" + --form project="$COV_PROJECT" + https://scan.coverity.com/download/cxx/linux64 + env: + COV_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + COV_PROJECT: ${{ secrets.COVERITY_SCAN_PROJECT }} + - name: unpack coverity + run: | + mkdir -p coverity + tar xfz cov-analysis-linux64.tar.gz --strip 1 -C coverity + - name: build with cov-build + run: > + PATH="$PWD/coverity/bin:$PATH" + cov-build --dir cov-int make -O -j"$(grep -c ^processor /proc/cpuinfo)" + - name: pack results + run: tar cfz multipath-tools.tgz cov-int + - name: submit results + run: > + curl + --form token="$COV_TOKEN" + --form email="$COV_EMAIL" + --form file="@multipath-tools.tgz" + --form version="${{ github.ref_name }}" + --form description="$(git describe --tags --match "0.*")" + --form project="$COV_PROJECT" + https://scan.coverity.com/builds + env: + COV_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + COV_PROJECT: ${{ secrets.COVERITY_SCAN_PROJECT }} + COV_EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 6/11 multipath-tools: .mailmap: add some more entries
In reply to [email protected]From: Martin Wilck <[email protected]>
--- .mailmap | 7 +++++++ 1 file changed, 7 insertions(+)
.mailmap +7 -0
@@ -9,9 +9,13 @@ # # Please keep this list dictionary sorted. # +Bart Van Assche <[email protected]> <[email protected]> +Bart Van Assche <[email protected]> <[email protected]> Benjamin Marzinski <[email protected]> <[email protected]> Benjamin Marzinski <[email protected]> <[email protected]> Benjamin Marzinski <[email protected]> [email protected] <[email protected]> +Chongyun Wu <[email protected]> Wuchongyun <[email protected]> +Chongyun Wu <[email protected]> <[email protected]> Christophe Varoqui <[email protected]> <[email protected]> Christophe Varoqui <[email protected]> <cvaroqui@cl039.(none)> Christophe Varoqui <[email protected]> <[email protected]>
@@ -20,5 +24,8 @@ Christophe Varoqui <[email protected]> root <root@potab.(none)> Christophe Varoqui <[email protected]> root <root@xa-s05.(none)> Christophe Varoqui <[email protected]> root <[email protected]> Christophe Varoqui <[email protected]> <root@xa-s05.(none)> +Hannes Reinecke <[email protected]> <[email protected]> +Hannes Reinecke <[email protected]> <[email protected]> Martin Wilck <[email protected]> <[email protected]> Martin Wilck <[email protected]> <[email protected]> +wei huang <[email protected]> wei.huang <[email protected]>
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 7/11 libmultipath: make orphan_paths() static
In reply to [email protected]From: Martin Wilck <[email protected]>
This function is only used in structs_vec.c
--- libmultipath/libmultipath.version | 1 - libmultipath/structs_vec.c | 2 +- libmultipath/structs_vec.h | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-)
libmultipath/libmultipath.version +0 -1
@@ -129,7 +129,6 @@ global: need_io_err_check; normalize_timespec; orphan_path; - orphan_paths; parse_prkey_flags; pathcount; path_discovery;
libmultipath/structs_vec.c +1 -1
@@ -300,7 +300,7 @@ void orphan_path(struct path *pp, const char *reason)uninitialize_path (pp); } -void orphan_paths (vector pathvec,struct multipath *mpp,const char *reason) +static void orphan_paths (vector pathvec,struct multipath *mpp,const char *reason) {int i;struct path * pp;
libmultipath/structs_vec.h +0 -2
@@ -15,8 +15,6 @@ void __set_no_path_retry(struct multipath *mpp, bool check_features);#define set_no_path_retry (mpp) __set_no_path_retry(mpp, true)int adopt_paths (vector pathvec,struct multipath * mpp); -void orphan_paths (vector pathvec,struct multipath *mpp, -const char *reason);void orphan_path (struct path * pp,const char *reason);void set_path_removed (struct path *pp);
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 8/11 libmultipath: make update_pathvec_from_dm() static
In reply to [email protected]From: Martin Wilck <[email protected]>
This function is called only in structs_vec.c.
--- libmultipath/libmultipath.version | 1 - libmultipath/structs_vec.c | 2 +- libmultipath/structs_vec.h | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-)
libmultipath/libmultipath.version +0 -1
@@ -197,7 +197,6 @@ global: update_mpp_paths; update_multipath_strings; update_multipath_table; - update_pathvec_from_dm; update_queue_mode_add_path; update_queue_mode_del_path; ux_socket_listen;
libmultipath/structs_vec.c +1 -1
@@ -99,7 +99,7 @@ static bool guess_mpp_wwid(struct multipath *mpp)* - may set pp->wwid and / or mpp->wwid * - calls pathinfo() on existing paths is pathinfo_flags is not 0 */ -bool update_pathvec_from_dm (vector pathvec,struct multipath *mpp, +static bool update_pathvec_from_dm (vector pathvec,struct multipath *mpp,int pathinfo_flags) {int i, j;
libmultipath/structs_vec.h +0 -2
@@ -19,8 +19,6 @@ void orphan_path (struct path * pp, const char *reason);void set_path_removed (struct path *pp);int verify_paths (struct multipath *mpp); -bool update_pathvec_from_dm (vector pathvec,struct multipath *mpp, -int pathinfo_flags);int update_mpp_paths (struct multipath * mpp,vector pathvec);int update_multipath_strings (struct multipath *mpp,vector pathvec);void extract_hwe_from_path (struct multipath * mpp);
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 9/11 libmultipath: remove recv_packet_from_client()
In reply to [email protected]From: Martin Wilck <[email protected]>
This function became unused after the late uxlsnr patches.
--- libmultipath/libmultipath.version | 1 - libmultipath/uxsock.c | 5 ----- libmultipath/uxsock.h | 6 ------ 3 files changed, 12 deletions(-)
libmultipath/libmultipath.version +0 -1
@@ -140,7 +140,6 @@ global: _print_multipath_topology; pthread_cond_init_mono; recv_packet; - recv_packet_from_client; reinstate_paths; remember_wwid; remove_map;
libmultipath/uxsock.c +0 -5
@@ -128,8 +128,3 @@ int recv_packet(int fd, char **buf, unsigned int timeout) {return _recv_packet (fd, buf, timeout,0 /* no limit */ ); } - -int recv_packet_from_client (int fd,char **buf,unsigned int timeout) -{ -return _recv_packet (fd, buf, timeout, _MAX_CMD_LEN); -}
libmultipath/uxsock.h +0 -6
@@ -5,9 +5,3 @@ int recv_packet(int fd, char **buf, unsigned int timeout);#define _MAX_CMD_LEN 512 -/* -* Used for receiving socket command from untrusted socket client where data -* size is restricted to 512(_MAX_CMD_LEN) at most. -* Return -EINVAL if data length requested by client exceeded the _MAX_CMD_LEN. -*/ -int recv_packet_from_client (int fd,char **buf,unsigned int timeout);
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 10/11 libmultipath.version: drop some unused symbols
In reply to [email protected]From: Martin Wilck <[email protected]>
Remove some symbols that aren't used any more, and move symbols "only" used by checkers / prioritizers to their respective places in the file (this helps assessing which symbols are used).
--- libmultipath/libmultipath.version | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
libmultipath/libmultipath.version +3 -8
@@ -48,7 +48,6 @@ global: checker_clear_message; checker_disable; checker_enable; - checker_is_sync; checker_message; checker_name; checker_state_name;
@@ -209,10 +208,13 @@ global: verify_paths; /* checkers */ + checker_is_sync; sg_read; + start_checker_thread; /* prioritizers */ get_asymmetric_access_state; + get_next_string; get_prio_timeout; get_target_port_group; get_target_port_group_support;
@@ -234,7 +236,6 @@ global: /* added in 2.1.0 */ libmp_dm_task_run; - cleanup_mutex; /* added in 2.2.0 */ libmp_get_multipath_config;
@@ -257,15 +258,10 @@ global: dm_prereq; skip_libmp_dm_init; - /* added in 4.3.0 */ - start_checker_thread; - /* added in 4.4.0 */ - get_next_string; /* added in 4.5.0 */ get_vpd_sgio; - trigger_partitions_udev_change; /* added in 7.0.0 */ cleanup_charp;
@@ -276,7 +272,6 @@ global: append_strbuf_str; get_strbuf_len; get_strbuf_str; - steal_strbuf_str; fill_strbuf; print_strbuf; truncate_strbuf;
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
PATCH 11/11 libmultipath.version: sort symbols
In reply to [email protected]From: Martin Wilck <[email protected]>
Give up the habit of indicating in which library version the symbols were added, which has no real benefit. The only "sections" that are kept are those listing symbols that are only used by dlopen'd .so files.
--- libmultipath/libmultipath.version | 81 +++++++++++-------------------- 1 file changed, 28 insertions(+), 53 deletions(-)
libmultipath/libmultipath.version +28 -53
@@ -43,8 +43,10 @@ global: alloc_path_layout; alloc_path_with_pathinfo; alloc_strvec; + append_strbuf_str; change_foreign; check_alias_settings; + check_daemon; checker_clear_message; checker_disable; checker_enable;
@@ -52,7 +54,9 @@ global: checker_name; checker_state_name; check_foreign; + cleanup_charp; cleanup_lock; + cleanup_ucharp; close_fd; coalesce_paths; convert_dev;
@@ -75,6 +79,7 @@ global: dm_is_mpath; dm_mapname; dm_map_present; + dm_prereq; dm_queue_if_no_path; dm_reassign; dm_reinstate_path;
@@ -103,16 +108,21 @@ global: free_pathvec; free_strvec; get_monotonic_time; + get_multipath_config; get_multipath_layout; get_path_layout; get_pgpolicy_id; get_refwwid; get_state; + get_strbuf_len; + get_strbuf_str; get_udev_device; get_uid; get_used_hwes; + get_vpd_sgio; group_by_prio; init_checkers; + init_config; init_foreign; init_prio; io_err_stat_handle_pathfail;
@@ -120,11 +130,18 @@ global: is_quote; libmp_dm_task_create; libmp_get_version; + libmp_get_multipath_config; + libmp_dm_task_run; + libmp_put_multipath_config; libmp_udev_set_sync_support; + libmp_verbosity; + libmultipath_exit; + libmultipath_init; load_config; log_thread_reset; log_thread_start; log_thread_stop; + logsink; need_io_err_check; normalize_timespec; orphan_path;
@@ -137,7 +154,9 @@ global: print_all_paths; print_foreign_topology; _print_multipath_topology; + print_strbuf; pthread_cond_init_mono; + put_multipath_config; recv_packet; reinstate_paths; remember_wwid;
@@ -147,6 +166,7 @@ global: remove_wwid; replace_wwids; reset_checker_classes; + reset_strbuf; select_all_tg_pt; select_action; select_find_multipaths_timeout;
@@ -161,7 +181,9 @@ global: setup_map; setup_thread_attr; should_multipath; + skip_libmp_dm_init; snprint_blacklist_report; + __snprint_config; snprint_config; snprint_devices; snprint_foreign_multipaths;
@@ -185,13 +207,17 @@ global: sysfs_attr_set_value; sysfs_get_size; sysfs_is_multipathed; + timespeccmp; timespecsub; trigger_paths_udev_change; + truncate_strbuf; + udev; uevent_dispatch; uevent_get_dm_str; uevent_get_env_positive_int; uevent_is_mpath; uevent_listen; + uninit_config; update_mpp_paths; update_multipath_strings; update_multipath_table;
@@ -213,6 +239,7 @@ global: start_checker_thread; /* prioritizers */ + fill_strbuf; get_asymmetric_access_state; get_next_string; get_prio_timeout;
@@ -223,6 +250,7 @@ global: libmp_nvme_identify_ns; log_nvme_errcode; nvme_id_ctrl_ana; + set_wakeup_fn; snprint_host_wwnn; snprint_host_wwpn; snprint_path_serial;
@@ -234,59 +262,6 @@ global: free_scandir_result; sysfs_attr_get_value; - /* added in 2.1.0 */ - libmp_dm_task_run; - - /* added in 2.2.0 */ - libmp_get_multipath_config; - get_multipath_config; - libmp_put_multipath_config; - put_multipath_config; - init_config; - uninit_config; - - /* added in 2.3.0 */ - udev; - logsink; - libmultipath_init; - libmultipath_exit; - - /* added in 4.1.0 */ - libmp_verbosity; - - /* added in 4.2.0 */ - dm_prereq; - skip_libmp_dm_init; - - /* added in 4.4.0 */ - - /* added in 4.5.0 */ - get_vpd_sgio; - - /* added in 7.0.0 */ - cleanup_charp; - cleanup_ucharp; - - /* added in 8.1.0 */ - reset_strbuf; - append_strbuf_str; - get_strbuf_len; - get_strbuf_str; - fill_strbuf; - print_strbuf; - truncate_strbuf; - - /* added in 8.2.0 */ - check_daemon; - - /* added in 9.1.0 */ - timespeccmp; - - /* added in 10.0.0 */ - set_wakeup_fn; - - /* added in 10.1.0 */ - __snprint_config; local: *; };
Signature · 7 lines
2.34.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 4 lines · On Thu, Dec 02, 2021 at 05:06:40PM +0100, [email protected] wrote:
From: Martin Wilck <[email protected]>
Hi Christophe, hi Ben,
Quoted 36 lines
here are some last-minute fixes that I'd like to have added to the currently pending multipath-tools update. None of them touches any real functionality, except the first one, which I already sent earlier today. Patch 3,4,5 were already included in my github PR (which I'm going to rebase to match this submission). Patch 2 supersedes "multipath-tools: generate abi without version script" from the first version of the Github PR. The rest is new, tidy-up work for libmultipath.version.
Regards
MartinMartin Wilck (11):
multipathd.service: add dependency on systemd-udevd-kernel.socket
multipath-tools: generate abi with dummy version script
multipath-tools: github abi workflow: don't fail on reference branch
multipath-tools: github workflows: rebuild containers for rolling
distros
multipath tools: github workflows: add coverity workflow
multipath-tools: .mailmap: add some more entries
libmultipath: makeorphan_paths()static
libmultipath: makeupdate_pathvec_from_dm()static
libmultipath: removerecv_packet_from_client()libmultipath.version: drop some unused symbols libmultipath.version: sort symbols.github/workflows/abi.yaml | 2 +- .github/workflows/coverity.yaml | 51 +++++++++++++++++ .github/workflows/native.yaml | 62 +++++++++++++++++++- .mailmap | 7 +++ Makefile.inc | 1 + libdmmp/Makefile | 2 +- libmpathcmd/Makefile | 13 ++++- libmpathpersist/Makefile | 15 ++++- libmpathvalid/Makefile | 16 +++++- libmultipath/Makefile | 13 ++++-
Quoted 11 lines
libmultipath/libmultipath.version | 95 ++++++++++--------------------- libmultipath/structs_vec.c | 4 +- libmultipath/structs_vec.h | 4 -- libmultipath/uxsock.c | 5 -- libmultipath/uxsock.h | 6 -- multipathd/multipathd.service | 2 + 16 files changed, 203 insertions(+), 95 deletions(-) create mode 100644 .github/workflows/coverity.yamlSignature · 1 line
2.34.0
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel