projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf2492d
)
MD: Fix problem where hot-added drives are not resynced.
author
Neil Brown
<neilb@suse.de>
Mon, 26 Mar 2007 21:40:42 +0000
(23:40 +0200)
committer
Adrian Bunk
<bunk@stusta.de>
Mon, 26 Mar 2007 21:40:42 +0000
(23:40 +0200)
If a drive is added with HOT_ADD_DISK rather than ADD_NEW_DISK,
saved_raid_disk isn't initialised properly, and the drive can be
included in the array without a resync.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index adf27f23283820e12968bc1e9910a523d49ae858..9957f583cb25191269377e845c7191b324bd512b 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-3258,6
+3258,7
@@
static int hot_add_disk(mddev_t * mddev, dev_t dev)
}
clear_bit(In_sync, &rdev->flags);
rdev->desc_nr = -1;
+ rdev->saved_raid_disk = -1;
err = bind_rdev_to_array(rdev, mddev);
if (err)
goto abort_export;