]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
FIX: Changes in '0' case for reshape position verification
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 16 Feb 2012 13:16:04 +0000 (14:16 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 20 Feb 2012 03:10:11 +0000 (14:10 +1100)
commit178950eacc814d50cbc61cd70ebb346aa67e2a03
treef006f89c7692f800e456736a0d9c59fc399cb171
parentd669228f295e4c695475f0c1f7dc52f514a177c4
FIX: Changes in '0' case for reshape position verification

Reading sysfs entry that is '0' long should cause an error.
Reshape position cannot be empty.

Absence of reshape position should be ignored. It is possible
that we are about raid0 reshape continuation and it is before takeover.
This means that according metadata (changed by mdmon) it should be reshaped
but md knows nothing about it at this moment. Reshape continuation
in reshape_array() will change it to raid4 and reshape position appears
in sysfs.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c