diff options
author | NeilBrown <neilb@suse.de> | 2012-02-16 04:11:57 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-02-16 04:11:57 +0100 |
commit | 9f1b0f0f1ed0dd4752be65348a24971335cd50e8 (patch) | |
tree | 36d7f1d3e30693c63053f38204f54950b4108a18 /config.c | |
parent | FIX: Do not try to (continue) reshape using inactive array (diff) | |
download | mdadm-9f1b0f0f1ed0dd4752be65348a24971335cd50e8.tar.xz mdadm-9f1b0f0f1ed0dd4752be65348a24971335cd50e8.zip |
config: conf_match should ignore devname when not set.
mapfile:RebuildMap calls conf_match with no devname, so we must be
careful not to use it.
Reported-by: Arkadiusz MiĆkiewicz <arekm@maven.pl>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1045,7 +1045,7 @@ struct mddev_ident *conf_match(struct supertype *st, array_list->devname); continue; } - if (array_list->devices && + if (array_list->devices && devname && !match_oneof(array_list->devices, devname)) { if (verbose >= 2 && array_list->devname) fprintf(stderr, Name |