diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-08-19 14:55:12 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-08-19 14:55:12 +1000 |
commit | 7bc1962f8c725cdd9e185d924f6894178e6dfec9 (patch) | |
tree | 9da8d9378ea5f474dfb1ff10a084629ee9fd34e4 /mdmon.c | |
parent | ae6aad82398085e07c922fbfa667a5f6ec5dd7e6 (diff) | |
download | mdadm-7bc1962f8c725cdd9e185d924f6894178e6dfec9.tar.gz mdadm-7bc1962f8c725cdd9e185d924f6894178e6dfec9.tar.xz mdadm-7bc1962f8c725cdd9e185d924f6894178e6dfec9.zip |
mdmon: remove devices from container
Once the monitor thread has kicked a drive from all managed arrays mdadm
-r is permitted. We are guaranteed that the drive is marked failed at
this point, so allow the drive to be re-added as a spare.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdmon.c')
-rw-r--r-- | mdmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -292,7 +292,7 @@ int main(int argc, char *argv[]) container->devs = NULL; for (di = mdi->devs; di; di = di->next) { struct mdinfo *cd = malloc(sizeof(*cd)); - cd = di; + *cd = *di; cd->next = container->devs; container->devs = cd; } |