diff options
author | NeilBrown <neilb@suse.de> | 2012-10-04 08:34:20 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-04 08:34:20 +0200 |
commit | 7103b9b88d8c27989e17c80d7296eda97370dc1e (patch) | |
tree | 225ef68ca743ca2bdf6e70a7581ac82aebfa29db /mapfile.c | |
parent | imsm: Allow to specify controller for --detail-platform. (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |