]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Rebuildmap: strip local host name from device name.
authorNeilBrown <neilb@suse.de>
Mon, 3 Nov 2014 01:49:05 +0000 (12:49 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 3 Nov 2014 01:49:05 +0000 (12:49 +1100)
commit628cdf19ea35daad22e409e51c0abc7ffb19d6aa
treea4313890310a3ba7dc94219bb34cc1fafc421c23
parent36dab45b89a65dc2eb4a0a5efda08f6c5d2e8856
Rebuildmap: strip local host name from device name.

When /run/mdadm/map is being rebuilt, e.g. by "mdadm -Ir",
if the device doesn't exist in /dev, we have to choose
a name.
Currently we don't strip the hostname which is wrong if
it is the local host.

Reported-by: Stephen Kent <smkent@smkent.net>
Signed-off-by: NeilBrown <neilb@suse.de>
mapfile.c