Skip to contentSkip to conversation

multipath-tools: final touces before next PR

PATCH In review [email protected] 2 participants 5 messages Sep 7, 2021 Device mapper

lore
Share & tools
lore
#0 lore raw

cover multipath-tools: final touces before next PR

From: Martin Wilck <[email protected]>

Hello Christophe, hello Ben,

here are a few final small fixes for the next multipath-tools PR:
https://github.com/opensvc/multipath-tools/pull/13

(Christophe, please give Ben a few days for review before merging).

Notes:

- The patch for libmultipath.version differs from the one I posted previously (https://listman.redhat.com/archives/dm-devel/2021-September/msg00011.html).
In the previous one I hadn't sticked to the guide line I had
set up myself (bumping the version of every symbol in the ABI
for incompatible changes). The previous patch (bumping only the
version of the symbols that had actually changed) has some advantages, in particular being able to track which symbols actually differ between versions. We may want to discuss changing the policy towards
this procedure in the future, but we can't do it silently like I did
in the first version of this patch.
- I wrote previously that "libmultipath: drop unnecessary parameter
from remove_map()" broke the directio test, but that was a braino.
It broke the dmevents tests. The fix is in this series.

Regards,
Martin

Martin Wilck (3):
libmultipath.version: adapt to changes in remove_map multipath-tools tests: fix dmevents test Update .gitignore

 .gitignore                        |  4 ++++
 libmultipath/libmultipath.version | 17 +++++++----------
 tests/dmevents.c                  |  4 +---
 3 files changed, 12 insertions(+), 13 deletions(-)
Signature · 7 lines
2.33.0


--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
#1 lore raw

PATCH 2/3 multipath-tools tests: fix dmevents test

From: Martin Wilck <[email protected]>

The dmevents test needs to be adapted to the ABI change for remove_map_by_alias().

---
 tests/dmevents.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tests/dmevents.c +1 -3
index 204cf1d..68c4ad4 100644
@@ -323,12 +323,10 @@ int __wrap_poll(struct pollfd *fds, nfds_t nfds, int timeout)
 	return mock_type(int);
 }
 
-void __wrap_remove_map_by_alias(const char *alias, struct vectors * vecs,
-				int purge_vec)
+void __wrap_remove_map_by_alias(const char *alias, struct vectors * vecs)
 {
 	check_expected(alias);
 	assert_ptr_equal(vecs, waiter->vecs);
-	assert_int_equal(purge_vec, 1);
 }
 
 /* pretend update the pretend dm devices. If fail is set, it
Signature · 7 lines
2.33.0


--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
#2 lore raw

PATCH v2 1/3 libmultipath.version: adapt to changes in remove_map

In reply to [email protected]

From: Martin Wilck <[email protected]>

The patch "libmultipath: drop unnecessary parameter from remove_map()" changed the parameter list of remove_map().

---
 libmultipath/libmultipath.version | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
libmultipath/libmultipath.version +7 -10
index 7b48265..eb5b5b5 100644
@@ -31,7 +31,7 @@
  *   The new version inherits the previous ones.
  */
 
-LIBMULTIPATH_8.0.0 {
+LIBMULTIPATH_9.0.0 {
 global:
 	/* symbols referenced by multipath and multipathd */
 	add_foreign;
@@ -270,12 +270,8 @@ global:
 
 	/* added in 7.0.0 */
 	cleanup_charp;
-local:
-	*;
-};
 
-LIBMULTIPATH_8.1.0 {
-global:
+	/* added in 8.1.0 */
 	reset_strbuf;
 	append_strbuf_str;
 	get_strbuf_len;
@@ -284,9 +280,10 @@ global:
 	fill_strbuf;
 	print_strbuf;
 	truncate_strbuf;
-} LIBMULTIPATH_8.0.0;
 
-LIBMULTIPATH_8.2.0 {
-global:
+	/* added in 8.2.0 */
 	check_daemon;
-} LIBMULTIPATH_8.1.0;
+
+local:
+	*;
+};
Signature · 7 lines
2.33.0


--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
#3 lore raw

PATCH 3/3 Update .gitignore

In reply to [email protected]

From: Martin Wilck <[email protected]>

Add tests/*.vgr (output files from vagrant tests runs), and a few other missing patterns.

---
 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)
.gitignore +4 -0
index 9926756..087dffc 100644
@@ -6,6 +6,9 @@
 *.a
 *.gz
 *.d
+\#*
+cscope.files
+cscope.out
 kpartx/kpartx
 multipath/multipath
 multipathd/multipathd
@@ -21,5 +24,6 @@ libdmmp/test/libdmmp_test
 libdmmp/test/libdmmp_speed_test
 tests/*-test
 tests/*.out
+tests/*.vgr
 libmultipath/nvme-ioctl.c
 libmultipath/nvme-ioctl.h
Signature · 7 lines
2.33.0


--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
maintainer Reviewed-by on the v1 series
#4 lore raw
In reply to [email protected]
Quoted 1 line · On Tue, Sep 07, 2021 at 08:56:33AM +0200, [email protected] wrote:

From: Martin Wilck <[email protected]>

for the set.

Quoted 32 lines

Hello Christophe, hello Ben,

here are a few final small fixes for the next multipath-tools PR:
https://github.com/opensvc/multipath-tools/pull/13

(Christophe, please give Ben a few days for review before merging).

Notes:

- The patch for libmultipath.version differs from the one I posted previously (https://listman.redhat.com/archives/dm-devel/2021-September/msg00011.html).
In the previous one I hadn't sticked to the guide line I had
set up myself (bumping the version of every symbol in the ABI
for incompatible changes). The previous patch (bumping only the
version of the symbols that had actually changed) has some advantages, in particular being able to track which symbols actually differ between versions. We may want to discuss changing the policy towards
this procedure in the future, but we can't do it silently like I did
in the first version of this patch.
- I wrote previously that "libmultipath: drop unnecessary parameter
from remove_map()" broke the directio test, but that was a braino.
It broke the dmevents tests. The fix is in this series.

Regards,
Martin

Martin Wilck (3):
libmultipath.version: adapt to changes in remove_map multipath-tools tests: fix dmevents test Update .gitignore

Quoted 7 lines
 .gitignore                        |  4 ++++
 libmultipath/libmultipath.version | 17 +++++++----------
 tests/dmevents.c                  |  4 +---
 3 files changed, 12 insertions(+), 13 deletions(-)
Signature · 1 line
2.33.0

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel