Lines Matching refs:reshape
24 * Minimum sectors of free reshape space per raid device
698 * Change bdev capacity of @rs in case of a disk add/remove reshape
841 * Out of place reshape will set them accordingly.
1875 /* True if layout is set to reshape. */
1883 /* True if @rs is requested to reshape by ctr */
1897 /* Historical case to support raid1 reshape without delta disks */
1966 * set reshape in order to be able to restart it
1971 * These define the properties of the array in case of an interrupted reshape
2003 * Check for reshape constraints on raid set @rs:
2005 * - reshape function non-existent
2008 * - ongoing reshape
2020 rs->ti->error = "Can't reshape degraded raid set";
2135 smp_rmb(); /* Make sure we access most recent reshape position */
2138 /* Flag ongoing reshape */
2144 /* Clear reshape flags */
2323 * to provide capacity for redundancy or during reshape
2474 * If no reshape in progress -> we're recovering single
2529 * the "sync" directive is disallowed during the reshape.
2616 * - before reshape: data is at offset 0 and free space
2619 * - after reshape: data is at offset rs->data_offset != 0 on each component LV
2628 * - before reshape: data is at offset rs->data_offset != 0 and
2631 * - after reshape: data is at offset 0 on each component LV
2638 * User space passes in 0 for data offset after having removed reshape space
2644 * - before reshape: data is at offset rs->data_offset 0 and
2650 * - after reshape: data is at offset 0 if it was at offset != 0
2665 rs->ti->error = data_offset ? "No space for forward reshape" :
2666 "No space for backward reshape";
2749 /* Prepare @rs for reshape */
2752 bool reshape;
2763 * This is actually not a reshape it is a
2767 rs->ti->error = "Can't reshape raid10 mirror groups";
2776 reshape = false;
2778 reshape = true;
2781 reshape = true;
2787 reshape = true;
2791 reshape = false;
2798 if (reshape) {
2808 /* Get reshape sectors from data_offsets or raid set */
2854 * to grow after the disk adding reshape,
2856 * reshape will happen forward, so space has to
2860 * has to shrink before starting the reshape,
2862 * reshape will happen backward, so space has to
2881 * by md, which'll store that erroneously in the superblock on reshape
2890 mddev->reshape_backwards = 0; /* adding disk(s) -> forward reshape */
2895 mddev->reshape_backwards = 1; /* removing disk(s) -> backward reshape */
2906 * - free space upfront -> reshape forward
2908 * - free space at the end -> reshape backward
2911 * This utilizes free reshape space avoiding the need
2914 * adding/removing reshape space has to be at
2924 * Adjust device size for forward reshape
2936 * If the md resync thread has updated superblock with max reshape position
2937 * at the end of a reshape but not (yet) reset the layout configuration
3123 /* Have to reject size change request during reshape */
3170 * is an instant operation as oposed to an ongoing reshape.
3173 /* We can't reshape a journaled raid4/5/6 */
3175 ti->error = "Can't reshape a journaled raid4/5/6 set";
3180 /* Out-of-place space has to be available to allow for a reshape unless raid1! */
3183 * We can only prepare for a reshape here, because the
3184 * raid set needs to run to provide the repective reshape
3187 * So do the reshape check after md_run() succeeded.
3231 /* Catch any inconclusive reshape superblock content. */
3276 /* Now do an early reshape check */
3347 "reshape",
3415 /* Helper to return resync/reshape progress for @rs and runtime flags for raid set in sync / resynching */
3454 * If "resync/reshape" is occurring, the raid set
3550 * The reshape ratio shows the progress of
3933 * Check any reshape constraints enforced by the personalility
3935 * May as well already kick the reshape off so that * pers->start_reshape() becomes optional.
3944 * Personality may not provide start reshape method in which
3956 * Now reshape got set up, update superblocks to
4009 /* Check for any resize/reshape on @rs and adjust/initiate */
4019 /* Check for any reshape request unless new raid set */
4021 /* Initiate a reshape. */
4027 DMWARN("Failed to check/start reshape, continuing without change");
4051 /* Only reduce raid set size before running a disk removing reshape. */