]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble.c: respect force flag.
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Tue, 5 May 2020 10:17:17 +0000 (12:17 +0200)
committerJes Sorensen <jsorensen@fb.com>
Thu, 14 May 2020 15:08:35 +0000 (11:08 -0400)
commit7b99edab2834d5d08ef774b4cff784caaa1a186f
tree27d642365557a35a2d1493e6ccdaa48ede85b7e4
parentec7d7ceefc1c2b9ba82cac1ba0f6a34d41a4a913
Assemble.c: respect force flag.

If the array is dirty handler will set resync_start to 0 to inform kernel
that resync is needed. RWH affects only raid456 module, for other
levels array will be started even array is degraded and resync cannot be
performed.

Force is really meaningful for raid456. If array is degraded and resync
is requested, kernel will reject an attempt to start the array. To
respect force, it has to be marked as clean (this will be done for each
array without PPL) and remove the resync request (only for raid 456).
Data corruption may occur so proper warning is added.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Assemble.c