summaryrefslogtreecommitdiffstats
path: root/mapfile.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-04 08:34:20 +0200
committerNeilBrown <neilb@suse.de>2012-10-04 08:34:20 +0200
commit7103b9b88d8c27989e17c80d7296eda97370dc1e (patch)
tree225ef68ca743ca2bdf6e70a7581ac82aebfa29db /mapfile.c
parentimsm: Allow to specify controller for --detail-platform. (diff)
downloadmdadm-7103b9b88d8c27989e17c80d7296eda97370dc1e.tar.xz
mdadm-7103b9b88d8c27989e17c80d7296eda97370dc1e.zip
Handles spaces in array names better.
1/ When printing the "name=" entry for --brief output, enclose name in quotes if it contains spaces etc. Quotes are already supported for reading mdadm.conf 2/ When a name is used as a device name, translate spaces and tabs to '_', as well as the current translation of '/' to '-'. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mapfile.c')
-rw-r--r--mapfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mapfile.c b/mapfile.c
index 6712733f..34ebdb54 100644
--- a/mapfile.c
+++ b/mapfile.c
@@ -422,7 +422,7 @@ void RebuildMap(void)
* an MD_DEVNAME for udev.
* The name needs to be unique both in /dev/md/
* and in this mapfile.
- * It needs to match watch -I or -As would come
+ * It needs to match what -I or -As would come
* up with.
* That means:
* Check if array is in mdadm.conf