device-mapper-multipath/0114-libmultipath-remove-pathgroup-wildcard-options.patch
Benjamin Marzinski 9ae3e98286 device-mapper-multipath-0.8.7-29
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
2024-05-22 00:09:52 -04:00

33 lines
1.0 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nitin Yewale <nyewale@redhat.com>
Date: Thu, 12 Jan 2023 14:28:49 -0600
Subject: [PATCH] libmultipath: remove pathgroup wildcard options
The multipathd command "multipathd show wildcards" shows the pathgroup
format wildcards, but there is no way to use them in a multipathd
command.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
libmultipath/print.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/libmultipath/print.c b/libmultipath/print.c
index 082e4e30..a6e4c774 100644
--- a/libmultipath/print.c
+++ b/libmultipath/print.c
@@ -803,13 +803,6 @@ int snprint_wildcards(struct strbuf *buff)
pd[i].wildcard, pd[i].header)) < 0)
return rc;
- if ((rc = append_strbuf_str(buff, "\npathgroup format wildcards:\n")) < 0)
- return rc;
- for (i = 0; pgd[i].header; i++)
- if ((rc = print_strbuf(buff, "%%%c %s\n",
- pgd[i].wildcard, pgd[i].header)) < 0)
- return rc;
-
return get_strbuf_len(buff) - initial_len;
}