Commit 230b55fa authored by Committed by Shaohua Li
md: forbid a RAID5 from having both a bitmap and a journal.
Having both a bitmap and a journal is pointless. Attempting to do so can corrupt the bitmap if the journal replay happens before the bitmap is initialized. Rather than try to avoid this corruption, simply refuse to allow arrays with both a bitmap and a journal. So: - if raid5_run sees both are present, fail. - if adding a bitmap finds a journal is present, fail - if adding a journal finds a bitmap is present, fail. Cc: firstname.lastname@example.org (4.10+) Signed-off-by: NeilBrown <email@example.com> Tested-by: Joshua Kinard <firstname.lastname@example.org> Acked-by: Joshua Kinard <email@example.com> Signed-off-by: Shaohua Li <firstname.lastname@example.org>
Showing with 14 additions and 1 deletion