Use '--replace-whitespace' option for scsi_id
authorHannes Reinecke <hare@suse.de>
Wed, 27 Jan 2010 07:48:11 +0000 (08:48 +0100)
committerHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 08:37:32 +0000 (10:37 +0200)
Some SCSI devices will return an identifier with spaces in it.
As we're using this name as the default device-mapper name we
should be reformatting it to replace all spaces with underscores
so as not to confuse device-mapper.

References: bnc#572209

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/defaults.h

index aa5d538..f268064 100644 (file)
@@ -1,4 +1,4 @@
-#define DEFAULT_GETUID         "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
+#define DEFAULT_GETUID         "/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/%n"
 #define DEFAULT_UDEVDIR                "/dev"
 #define DEFAULT_MULTIPATHDIR   "/" LIB_STRING "/multipath"
 #define DEFAULT_SELECTOR       "round-robin 0"