All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] multipath: rlookup WWIDs with spaces by alias
@ 2011-11-12  4:54 Benjamin Marzinski
  2011-11-12 10:18 ` Christophe Varoqui
  2011-11-14  9:17 ` Hannes Reinecke
  0 siblings, 2 replies; 5+ messages in thread
From: Benjamin Marzinski @ 2011-11-12  4:54 UTC (permalink / raw)
  To: device-mapper development; +Cc: Christophe Varoqui

If a WWID contained spaces, the rlookup code wasn't able to look it up
by its user_friendly_name, since the code was only reading the wwid till
the first space.  It now reads to the end of the line.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
 libmultipath/alias.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: multipath-tools-110412/libmultipath/alias.c
===================================================================
--- multipath-tools-110412.orig/libmultipath/alias.c
+++ multipath-tools-110412/libmultipath/alias.c
@@ -288,7 +288,7 @@ rlookup_binding(FILE *f, char **map_wwid
 		curr_id = scan_devname(alias, NULL); /* TBD: Why this call? */
 		if (curr_id >= id)
 			id = curr_id + 1;
-		wwid = strtok(NULL, " \t");
+		wwid = strtok(NULL, "");
 		if (!wwid){
 			condlog(3,
 				"Ignoring malformed line %u in bindings file",

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-15 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-12  4:54 [PATCH] multipath: rlookup WWIDs with spaces by alias Benjamin Marzinski
2011-11-12 10:18 ` Christophe Varoqui
2011-11-14  9:17 ` Hannes Reinecke
2011-11-14 18:34   ` Benjamin Marzinski
2011-11-15 20:41     ` Christophe Varoqui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.