FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 10-05-2011, 08:48 PM
Christophe Varoqui
 
Default multipath: make sure all the hwe attributes get merged

On mar., 2011-10-04 at 23:13 -0500, Benjamin Marzinski wrote:
> Not all of the hwe attributes were getting merged. Also,
> multipathd show config was putting an extra set of quotes around the entries
> in the devices section.
>
Merged.

I haven't checked recently with arrays with whitespaces in their
vendor/product/rev strings. I remember resorting to the value quoting
because of those. Might be worth checking if the parser behaves now
without the quotes.

Regards,
cvaroqui

> Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
> ---
> libmultipath/config.c | 4 ++++
> libmultipath/print.c | 2 +-
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> Index: multipath-tools-110916/libmultipath/config.c
> ================================================== =================
> --- multipath-tools-110916.orig/libmultipath/config.c
> +++ multipath-tools-110916/libmultipath/config.c
> @@ -320,6 +320,10 @@ merge_hwe (struct hwentry * dst, struct
> merge_num(no_path_retry);
> merge_num(minio);
> merge_num(minio_rq);
> + merge_num(pg_timeout);
> + merge_num(flush_on_last_del);
> + merge_num(fast_io_fail);
> + merge_num(dev_loss);
>
> return 0;
> }
> Index: multipath-tools-110916/libmultipath/print.c
> ================================================== =================
> --- multipath-tools-110916.orig/libmultipath/print.c
> +++ multipath-tools-110916/libmultipath/print.c
> @@ -860,7 +860,7 @@ snprint_hwentry (char * buff, int len, s
> if (fwd > len)
> return len;
> iterate_sub_keywords(rootkw, kw, i) {
> - fwd += snprint_keyword(buff + fwd, len - fwd, " %k "%v"
",
> + fwd += snprint_keyword(buff + fwd, len - fwd, " %k %v
",
> kw, hwe);
> if (fwd > len)
> return len;


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

Thread Tools




All times are GMT. The time now is 11:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org