summaryrefslogtreecommitdiff
path: root/managemon.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-04-14 10:19:02 +1000
committerNeilBrown <neilb@suse.de>2009-04-14 10:19:02 +1000
commit462906cdeebc07875a4c8653c86ca02c09280f78 (patch)
tree5af5fdb38d3863f9ca595806d849b68725d7d02b /managemon.c
parenta9934ce44184660332549965c7d83a6a023ffd33 (diff)
incremental_container: preserve 'in_sync' flag when adding to existing array.
When building container members with -IR, we need to ensure that devices added to an active array preserve the 'in_sync' status so they don't needlessly get rebuilt. So allow sysfs_add_disk to do this (only works in kernels since 2.6.30) and pass the relevant flag down. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'managemon.c')
-rw-r--r--managemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/managemon.c b/managemon.c
index e02c77ea..3835c995 100644
--- a/managemon.c
+++ b/managemon.c
@@ -395,7 +395,7 @@ static void manage_member(struct mdstat_ent *mdstat,
* and open files for each newdev */
for (d = newdev; d ; d = d->next) {
struct mdinfo *newd;
- if (sysfs_add_disk(&newa->info, d) < 0)
+ if (sysfs_add_disk(&newa->info, d, 0) < 0)
continue;
newd = malloc(sizeof(*newd));
*newd = *d;