[PATCH 0/1] Avoid OOPS when reshaping raid1 to raid0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx>

Hi,

If one tries to reshape a raid1 into a raid0 the kernel will OOPS
because it tries to align the size of the new array to the original
chunk size. However a raid1 doesn't have the notion of chunk size, so
we end up dividing by zero and OOPSing.

Fix it by setting the existing chunk size of the raid1 being reshaped
to the new suggested chunk size.

Cheers,
Jes


Jes Sorensen (1):
  Avoid OOPS when reshaping raid1 to raid0

 drivers/md/raid0.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux