]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: don't skip resync when an invalid ppl header is found
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Thu, 28 Sep 2017 12:41:14 +0000 (14:41 +0200)
committerJes Sorensen <jsorensen@fb.com>
Mon, 2 Oct 2017 20:13:56 +0000 (16:13 -0400)
commitb23d07503d5940086ea0884d09a737ccb0a9e435
treeb53e0596512fb5c4f1bf97c9886bba9403b8201b
parent41b25549f080ebac1269689f942f722368ed28b1
imsm: don't skip resync when an invalid ppl header is found

If validate_ppl_imsm() detects an invalid ppl header it will be
overwritten with a valid, empty ppl header. But if we are assembling an
array after unclean shutdown this will cause the kernel to skip resync
after ppl recovery. We don't want that because if there was an invalid
ppl it's best to assume that the ppl recovery is not enough to make the
array consistent and a full resync should be performed. So when
overwriting the invalid ppl add one ppl_header_entry with a wrong
checksum. This will prevent the kernel from skipping resync after ppl
recovery.

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-intel.c