]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: validate multiple ppls during assemble
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Thu, 28 Sep 2017 12:41:10 +0000 (14:41 +0200)
committerJes Sorensen <jsorensen@fb.com>
Mon, 2 Oct 2017 20:10:39 +0000 (16:10 -0400)
commit44b6b87610281a4add36a1addd7630095dc8a545
treeaf7d9de2bd208efeead5020ecb9c6e31afa08a44
parentc24620685185eb7a159a8563b60a5e062b03b12e
imsm: validate multiple ppls during assemble

Change validation algorithm to check validity of multiple ppls that
are stored in PPL area.

If read error occurs during - treat the all PPLs as invalid -
there is no guarantee that this one was not latest. If the header CRC is
incorrect - assume that there are no further PPLs in PPL area.

If whole PPL area was written at least once - there is a possibility that
old PPL (with lower generation number) will follow the recent one
(with higest generation number). Compare those generation numbers to check
which PPL is latest.

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