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>
This commit is contained in:
parent
fb52f2457a
commit
a74e5731ba
|
@ -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 = xmalloc(sizeof(*info));
|
||||
st->ss->getinfo_super(st, info, NULL);
|
||||
}
|
||||
if (!info)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue