]> git.neil.brown.name Git - mdadm.git/commit
reshape: support raid5 grow on certain older kernels.
authorNeilBrown <neilb@suse.de>
Wed, 25 Mar 2015 23:06:26 +0000 (10:06 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 25 Mar 2015 23:06:26 +0000 (10:06 +1100)
commit783bbc2b131e2cfea7870f91c194920a45fd556c
tree37031eeb1666f87042c45f05ae04fb71c77bd478
parent4d149ab5178e21422a9bdb9a5489ed3381a0d136
reshape: support raid5 grow on certain older kernels.

Kernels between
  c6563a8c38fde3c1c7fc925a v3.5-rc1~110^2~53
and
  b5254dd5fdd9abcacadb5101 v3.5-rc1~110^2~51

allow new_offset to be set, but don't then allow a RAID5
to be reshaped to change that offset.
Due to selective backports, this includes the SLES11-SP3 kernel.

It is quite easy to handle this case in mdadm, so we do.
Specifically: if the reshape with data-offset fails with EINVAL,
abort the data-offset change and try the "old" way.

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