summaryrefslogtreecommitdiffstats
path: root/mdmon.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-08-19 14:55:12 +1000
committerNeilBrown <neilb@suse.de>2008-08-19 14:55:12 +1000
commit7bc1962f8c725cdd9e185d924f6894178e6dfec9 (patch)
tree9da8d9378ea5f474dfb1ff10a084629ee9fd34e4 /mdmon.c
parentae6aad82398085e07c922fbfa667a5f6ec5dd7e6 (diff)
downloadmdadm-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdmon.c b/mdmon.c
index 85f44bc..9485757 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -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;
}