9ae3e98286
Add 0110-libmultipath-keep-track-of-queueing-state-in-feature.patch Add 0111-libmultipath-export-partmap_in_use.patch Add 0112-libmultipath-change-flush_on_last_del-to-fix-a-multi.patch Add 0113-libmultipath-pad-dev_loss_tmo-to-avoid-race-with-no_.patch * Fixes RHEL-30272 Add 0114-libmultipath-remove-pathgroup-wildcard-options.patch Add 0115-libmultipath-print-all-values-in-snprint_failback.patch Add 0116-multipathd-Stop-double-counting-map-failures-for-no_.patch Add 0117-multipath-tools-man-pages-add-missing-multipathd-com.patch Add 0118-libmultipath-change-the-vend-prod-rev-printing.patch Add 0119-multipath-tools-man-pages-Add-format-wildcard-descri.patch * Fixes RHEL-8304 Resolves: RHEL-8304 Resolves: RHEL-30272
55 lines
1.9 KiB
Diff
55 lines
1.9 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Date: Thu, 25 Apr 2024 19:35:13 -0400
|
|
Subject: [PATCH] libmultipath: export partmap_in_use
|
|
|
|
A future commit will make use of this function
|
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Reviewed-by: Martin Wilck <mwilck@suse.com>
|
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
---
|
|
libmultipath/devmapper.c | 2 +-
|
|
libmultipath/devmapper.h | 1 +
|
|
libmultipath/libmultipath.version | 5 +++++
|
|
3 files changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c
|
|
index 5711f0ee..4a66e2c4 100644
|
|
--- a/libmultipath/devmapper.c
|
|
+++ b/libmultipath/devmapper.c
|
|
@@ -1028,7 +1028,7 @@ has_partmap(const char *name __attribute__((unused)),
|
|
return 1;
|
|
}
|
|
|
|
-static int
|
|
+int
|
|
partmap_in_use(const char *name, void *data)
|
|
{
|
|
int part_count, *ret_count = (int *)data;
|
|
diff --git a/libmultipath/devmapper.h b/libmultipath/devmapper.h
|
|
index 41b8c31d..88e0b114 100644
|
|
--- a/libmultipath/devmapper.h
|
|
+++ b/libmultipath/devmapper.h
|
|
@@ -48,6 +48,7 @@ int dm_get_map(const char *, unsigned long long *, char **);
|
|
int dm_get_status(const char *, char **);
|
|
int dm_type(const char *, char *);
|
|
int dm_is_mpath(const char *);
|
|
+int partmap_in_use(const char *name, void *data);
|
|
int _dm_flush_map (const char *, int, int, int, int);
|
|
int dm_flush_map_nopaths(const char * mapname, int deferred_remove);
|
|
#define dm_flush_map(mapname) _dm_flush_map(mapname, 1, 0, 0, 0)
|
|
diff --git a/libmultipath/libmultipath.version b/libmultipath/libmultipath.version
|
|
index 1d018eab..40d9246d 100644
|
|
--- a/libmultipath/libmultipath.version
|
|
+++ b/libmultipath/libmultipath.version
|
|
@@ -302,3 +302,8 @@ LIBMULTIPATH_9.1.2 {
|
|
global:
|
|
cleanup_mutex;
|
|
} LIBMULTIPATH_9.1.1;
|
|
+
|
|
+LIBMULTIPATH_9.1.3 {
|
|
+global:
|
|
+ partmap_in_use;
|
|
+} LIBMULTIPATH_9.1.2;
|