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
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Date: Wed, 8 May 2024 19:02:30 -0400
|
|
Subject: [PATCH] libmultipath: print all values in snprint_failback
|
|
|
|
Add the missing output for manual failback and print the defferral time
|
|
for deferred failbacks, if one isn't currently in progress.
|
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
---
|
|
libmultipath/print.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/libmultipath/print.c b/libmultipath/print.c
|
|
index a6e4c774..535e0271 100644
|
|
--- a/libmultipath/print.c
|
|
+++ b/libmultipath/print.c
|
|
@@ -199,9 +199,13 @@ snprint_failback (struct strbuf *buff, const struct multipath * mpp)
|
|
return append_strbuf_str(buff, "immediate");
|
|
if (mpp->pgfailback == -FAILBACK_FOLLOWOVER)
|
|
return append_strbuf_str(buff, "followover");
|
|
+ if (mpp->pgfailback == -FAILBACK_MANUAL)
|
|
+ return append_strbuf_str(buff, "manual");
|
|
+ if (mpp->pgfailback == FAILBACK_UNDEF)
|
|
+ return append_strbuf_str(buff, "undef");
|
|
|
|
if (!mpp->failback_tick)
|
|
- return append_strbuf_str(buff, "-");
|
|
+ return print_strbuf(buff, "%i", mpp->pgfailback);
|
|
else
|
|
return snprint_progress(buff, mpp->failback_tick,
|
|
mpp->pgfailback);
|