]> git.neil.brown.name Git - mdadm.git/commit
imsm: assert if there is migration but prev_map doesn't exist
authorPawel Piatkowski <pawel.piatkowski@intel.com>
Mon, 8 Nov 2021 11:53:12 +0000 (12:53 +0100)
committerJes Sorensen <jsorensen@fb.com>
Tue, 9 Nov 2021 21:56:51 +0000 (16:56 -0500)
commit195d1d7658c4485e4c63e3758464e413d87043d2
tree3a3975118347a902bcf4779f3e74e3336c369edf
parent75f3ba2527f37e5d5725b0827510209211c0eda1
imsm: assert if there is migration but prev_map doesn't exist

Verify that prev_map in not null during volume migration.
Practically this case is not possible, device prev_map is being
added if it is in the middle of migration.
Add verification to silence static code analyze errors.

Change error handling for function is_gen_migration() (as well as
values compared with return value from this function) to use boolean
types provided by stdbool.h.

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