diff mbox

multipath-tools: increase the print length of the multipath fields

Message ID 1478781121-10924-1-git-send-email-tang.wenji@zte.com.cn (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show

Commit Message

tang.wenji@zte.com.cn Nov. 10, 2016, 12:32 p.m. UTC
From: "tang.wenji" <tang.wenji@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@zte.com.cn>
---
 libmultipath/print.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christophe Varoqui Nov. 20, 2016, 9:21 a.m. UTC | #1
Applied,
thanks.

On Thu, Nov 10, 2016 at 1:32 PM, <tang.wenji@zte.com.cn> wrote:

> From: "tang.wenji" <tang.wenji@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@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
>
>
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
diff mbox

Patch

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 {