]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: split out start_reshape for initiating reshape via sysfs.
authorNeilBrown <neilb@suse.de>
Wed, 15 Dec 2010 22:07:52 +0000 (09:07 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 15 Dec 2010 22:07:52 +0000 (09:07 +1100)
commit47eb4d5a180a2fc0cdf25c82ce35b5bd5f23c712
tree8b60bf8c98dcc79ac7c2fcd64cbbfe671f2919c2
parent7d469585fc55f042ab95ea6edad24ec9e9e15cb1
Grow: split out start_reshape for initiating reshape via sysfs.

Rather than sprinkling various sysfs setting around, put them all
in one place.  This will make implementing ->manage_reshape easier.

This changes behaviour slightly.
Previously we would not set 'sync_action' to 'reshape' until we were
ready for the process to start.  Now we set sync_max to zero and set
sync_action to 'reshape' at that time.  When we want reshape to
actually start we advance sync_max.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c