Skip to content
Commit 24b961f8 authored by Jes Sorensen's avatar Jes Sorensen Committed by NeilBrown
Browse files

md: Avoid OOPS when reshaping raid1 to raid0



raid1 arrays do not have the notion of chunk size. Calculate the
largest chunk sector size we can use to avoid a divide by zero OOPS
when aligning the size of the new array to the chunk size.

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 18b9837e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment