[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>


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.


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

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


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

[ATA RAID]     [Linux SCSI Target Infrastructure]     [Managing RAID on Linux]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device-Mapper]     [Kernel]     [Linux Books]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Photos]     [Yosemite Photos]     [Yosemite News]     [AMD 64]     [Linux Networking]

Add to Google Powered by Linux