]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: Fix starting array with initial reshape checkpoint
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Fri, 22 Feb 2019 11:56:27 +0000 (12:56 +0100)
committerJes Sorensen <jsorensen@fb.com>
Thu, 28 Feb 2019 20:48:51 +0000 (15:48 -0500)
commit2b57e4fe041d52ae29866c93a878a11c07223cff
tree2f023059d8b9a4cc32d547c049e78559cf5063df
parentd2e11da4b7fd0453e942f43e4196dc63b3dbd708
Assemble: Fix starting array with initial reshape checkpoint

If array was stopped during reshape initialization,
there might be a "0" checkpoint recorded in metadata.
If array with such condition (reshape with position 0)
is passed to kernel - it will refuse to start such array.

Treat such array as normal during assemble, Grow_continue() will
reinitialize and start the reshape.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Assemble.c