diff options
author | NeilBrown <neilb@suse.de> | 2012-09-27 16:58:42 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-09-27 16:58:42 +1000 |
commit | c5c56d68ff098c10dd549a9feaa320d3db475bdd (patch) | |
tree | c4c53b61dc89a18edf00cfb3f43a1573a063e631 | |
parent | 80841df260bdf76d903a9f0c296c22c8b69603d4 (diff) | |
download | mdadm-c5c56d68ff098c10dd549a9feaa320d3db475bdd.tar.gz |
mapfile: fix mapfile rebuild for containers
When recreating the mapfile entry for a container we need to
use ->getinfo_super, not ->container_content, just like we
do in Detail().
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | mapfile.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -403,7 +403,12 @@ void RebuildMap(void) close(dfd); if (ok != 0) continue; - info = st->ss->container_content(st, subarray); + if (subarray) + info = st->ss->container_content(st, subarray); + else { + info = malloc(sizeof(*info)); + st->ss->getinfo_super(st, info, NULL); + } if (!info) continue; |