]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: Try hard to set new_offset.
authorNeilBrown <neilb@suse.de>
Mon, 24 Jun 2013 03:02:35 +0000 (13:02 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 24 Jun 2013 03:02:35 +0000 (13:02 +1000)
commita6a78630acd3772b493c042c71fc8c22799fab4d
tree402d2c88c7d79b4dfb054be198bb24a2a9436f0c
parent534f543296e6e28d44bb1176eb37258e8a542dc5
Grow: Try hard to set new_offset.

Setting new_offset can fail if the v1.x "data_size" is too small.
So if that happens, try increasing it first by writing "0".
That can fail on spare devices due to a kernel bug, so if it doesn't
try writing the correct number of sectors.

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