Revert "Assemble: support assembling of a RAID0 being reshaped."
This reverts commit b720636a58
.
As it said, this was a hack. It causes problems when trying to
--force assemble a RAID4. There is a better way.
Reported-by: "Jonathan Harker (Jesusaurus)" <jesusaurus@gentlydownthe.net>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
ee466574f2
commit
d316dba7c9
|
@ -1526,9 +1526,7 @@ try_again:
|
|||
if (i < content->array.raid_disks * 2) {
|
||||
if (devices[j].i.recovery_start == MaxSector ||
|
||||
(content->reshape_active &&
|
||||
((i >= content->array.raid_disks - content->delta_disks) ||
|
||||
(i >= content->array.raid_disks - content->delta_disks - 1
|
||||
&& content->array.level == 4)))) {
|
||||
i >= content->array.raid_disks - content->delta_disks)) {
|
||||
if (!avail[i/2]) {
|
||||
okcnt++;
|
||||
avail[i/2]=1;
|
||||
|
|
Loading…
Reference in New Issue