aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2010-01-27 08:48:11 +0100
committerHannes Reinecke <hare@suse.de>2011-05-03 10:37:32 +0200
commite7deadc8985652879ec54c0943d6b396eba60598 (patch)
treeaf981847913ae9b413aba57e1d6f2c8122812a0d
parentdc6fdadb62a7aefa92a6871e0ede995607a9e0ca (diff)
downloadmultipath-tools-e7deadc8985652879ec54c0943d6b396eba60598.tar.gz
Use '--replace-whitespace' option for scsi_id
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>
-rw-r--r--libmultipath/defaults.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmultipath/defaults.h b/libmultipath/defaults.h
index aa5d538..f268064 100644
--- a/libmultipath/defaults.h
+++ b/libmultipath/defaults.h
@@ -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"