]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Manage.c
incremental_container: preserve 'in_sync' flag when adding to existing array.
authorNeilBrown <neilb@suse.de>
Tue, 14 Apr 2009 00:19:02 +0000 (10:19 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 14 Apr 2009 00:19:02 +0000 (10:19 +1000)
commit462906cdeebc07875a4c8653c86ca02c09280f78
tree5af5fdb38d3863f9ca595806d849b68725d7d02b
parenta9934ce44184660332549965c7d83a6a023ffd33
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>
Assemble.c
Manage.c
managemon.c
mdadm.h
sysfs.c
util.c