]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: When setting component size make sure components are ready.
authorNeilBrown <neilb@suse.de>
Tue, 10 May 2011 00:44:00 +0000 (10:44 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 10 May 2011 00:44:00 +0000 (10:44 +1000)
commitd1537ed19201222cf73bc55f844f100f1a70f6cb
tree11bc1e5402f2538d395b2891f2251daacd9b36e3
parent4bba04392170133ea3c9ae5ea54494288767efb4
Grow: When setting component size make sure components are ready.

If you change the size of a member of an array (e.g. it might be a
dm device that can be resized, or on a smart storage device), md
doesn't notice and so the space cannot be used without explicitly
telling md that the device is bigger.

This change causes "mdadm --grow --size=...." to make sure each
component device is making at least that much space available if it
can.

Normally usage of "--size=max" will cause all devices to make max
space available, the md will use as much as it can of that.

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