long long size,
int level, char *layout_str, int chunksize, int raid_disks,
struct mddev_dev *devlist,
- int force)
+ int assume_clean, int force)
{
/* Make some changes in the shape of an array.
* The kernel must support the change.
rv = 1;
goto release;
}
+ if (assume_clean) {
+ /* This will fail on kernels newer than 2.6.40 unless
+ * a backport has been arranged.
+ */
+ if (sra == NULL ||
+ sysfs_set_str(sra, NULL, "resync_start", "none") < 0)
+ fprintf(stderr, Name ": --assume-clean not support with --grow on this kernel\n");
+ }
ioctl(fd, GET_ARRAY_INFO, &array);
size = get_component_size(fd)/2;
if (size == 0)