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

tang.wenji at zte.com.cn tang.wenji at zte.com.cn
Thu Nov 10 12:32:01 UTC 2016


From: "tang.wenji" <tang.wenji at zte.com.cn>

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 at zte.com.cn>
---
 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




More information about the dm-devel mailing list