diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2011-06-08 17:13:26 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-08 17:13:26 +1000 |
commit | e919fb0af245512b02200b8e78c8bbbc0f966f9c (patch) | |
tree | 480f5d4a7b9873bd6eb06b449859df6de5cfce4d | |
parent | 0ec5d470e00787e9b03ba3a880b1b98e0da034cd (diff) | |
download | mdadm-e919fb0af245512b02200b8e78c8bbbc0f966f9c.tar.gz |
FIX: Enable metadata updates for raid0
When raid0 is takeovered to degraded raid4, metadata updates has to be
applied via mdmon (raid4 has to be monitored).
It is not possible due to no update_tail pointer initialization
in supertype structure.
Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | Grow.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1848,6 +1848,9 @@ static int reshape_array(char *container, int fd, char *devname, if (!mdmon_running(st->container_dev)) start_mdmon(st->container_dev); ping_monitor(container); + if (mdmon_running(st->container_dev) && + st->update_tail == NULL) + st->update_tail = &st->updates; } } /* ->reshape_super might have chosen some spares from the @@ -2265,6 +2268,8 @@ started: ": %s: could not set level " "to %s\n", devname, c); } + if (info->new_level == 0) + st->update_tail = NULL; } out: if (forked) |