Make sure that if --assemble find an array in the critical region
of a reshape, and cannot find the critical data to restart the
reshape, it gives an error message.
1.x array was created with older mdadm).
- When adding a drive that was a little too small, we did not get
the correct error message.
+ - Make sure that if --assemble find an array in the critical region
+ of a reshape, and cannot find the critical data to restart the
+ reshape, it gives an error message.
Changes Prior to 2.6.2 release
- --fail detached and --remove faulty can be used to fail and
{
int i, j;
int old_disks;
- int err = 0;
unsigned long long *offsets;
if (info->delta_disks < 0)
fd, __le64_to_cpu(bsb.devstart)*512,
0, __le64_to_cpu(bsb.length)*512)) {
/* didn't succeed, so giveup */
- return -1;
+ return 1;
}
/* Ok, so the data is restored. Let's update those superblocks. */
/* And we are done! */
return 0;
}
- return err;
+ return 1;
}