[PATCH] multipath-tools: increase the print length of the multipath fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "tang.wenji" <tang.wenji@xxxxxxxxxx>

The maximum field length is set to 64, which may be truncated when
displayed.
E.g:the multipath's 'features' field sets as "6 queue_if_no_path
pg_init_retries 3 pg_init_delay_msecs 30 retain_attached_hw_handler",  but
it shows as "6 queue_if_no_path pg_init_retries 3 pg_init_delay_msecs 30 ret" .

Signed-off-by: tang.wenji <tang.wenji@xxxxxxxxxx>
---
 libmultipath/print.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/print.h b/libmultipath/print.h
index 6839fc7..b8c3436 100644
--- a/libmultipath/print.h
+++ b/libmultipath/print.h
@@ -66,7 +66,7 @@
 
 #define MAX_LINE_LEN  80
 #define MAX_LINES     64
-#define MAX_FIELD_LEN 64
+#define MAX_FIELD_LEN 128
 #define PROGRESS_LEN  10
 
 struct path_data {
-- 
2.8.1.windows.1

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux