Lines Matching defs:reshape

23  * Minimum sectors of free reshape space per raid device
697 * Change bdev capacity of @rs in case of a disk add/remove reshape
841 * Out of place reshape will set them accordingly.
1874 /* True if layout is set to reshape. */
1882 /* True if @rs is requested to reshape by ctr */
1896 /* Historical case to support raid1 reshape without delta disks */
1965 * set reshape in order to be able to restart it
1970 * These define the properties of the array in case of an interrupted reshape
2002 * Check for reshape constraints on raid set @rs:
2004 * - reshape function non-existent
2007 * - ongoing reshape
2019 rs->ti->error = "Can't reshape degraded raid set";
2134 smp_rmb(); /* Make sure we access most recent reshape position */
2137 /* Flag ongoing reshape */
2143 /* Clear reshape flags */
2323 * to provide capacity for redundancy or during reshape
2477 * If no reshape in progress -> we're recovering single
2532 * that the "sync" directive is disallowed during the reshape.
2619 * - before reshape: data is at offset 0 and free space
2622 * - after reshape: data is at offset rs->data_offset != 0 on each component LV
2631 * - before reshape: data is at offset rs->data_offset != 0 and
2634 * - after reshape: data is at offset 0 on each component LV
2641 * User space passes in 0 for data offset after having removed reshape space
2647 * - before reshape: data is at offset rs->data_offset 0 and
2653 * - after reshape: data is at offset 0 if it was at offset != 0
2668 rs->ti->error = data_offset ? "No space for forward reshape" :
2669 "No space for backward reshape";
2752 /* Prepare @rs for reshape */
2755 bool reshape;
2766 * This is actually not a reshape it is a
2770 rs->ti->error = "Can't reshape raid10 mirror groups";
2779 reshape = false;
2781 reshape = true;
2784 reshape = true;
2790 reshape = true;
2794 reshape = false;
2801 if (reshape) {
2811 /* Get reshape sectors from data_offsets or raid set */
2857 * to grow after the disk adding reshape,
2859 * reshape will happen forward, so space has to
2863 * has to shrink before starting the reshape,
2865 * reshape will happen backward, so space has to
2884 * by md, which'll store that erroneously in the superblock on reshape
2893 mddev->reshape_backwards = 0; /* adding disk(s) -> forward reshape */
2898 mddev->reshape_backwards = 1; /* removing disk(s) -> backward reshape */
2909 * - free space upfront -> reshape forward
2911 * - free space at the end -> reshape backward
2914 * This utilizes free reshape space avoiding the need
2917 * adding/removing reshape space has to be at
2927 * Adjust device size for forward reshape
2939 * If the md resync thread has updated superblock with max reshape position
2940 * at the end of a reshape but not (yet) reset the layout configuration
3130 /* Have to reject size change request during reshape */
3177 * is an instant operation as oposed to an ongoing reshape.
3180 /* We can't reshape a journaled raid4/5/6 */
3182 ti->error = "Can't reshape a journaled raid4/5/6 set";
3187 /* Out-of-place space has to be available to allow for a reshape unless raid1! */
3190 * We can only prepare for a reshape here, because the
3191 * raid set needs to run to provide the repective reshape
3194 * So do the reshape check after md_run() succeeded.
3238 /* Catch any inconclusive reshape superblock content. */
3283 /* Now do an early reshape check */
3354 "reshape",
3422 /* Helper to return resync/reshape progress for @rs and runtime flags for raid set in sync / resynching */
3461 * If "resync/reshape" is occurring, the raid set
3557 * The reshape ratio shows the progress of
3910 * Check any reshape constraints enforced by the personalility
3912 * May as well already kick the reshape off so that * pers->start_reshape() becomes optional.
3921 * Personality may not provide start reshape method in which
3933 * Now reshape got set up, update superblocks to
3986 /* Check for any resize/reshape on @rs and adjust/initiate */
3996 /* Check for any reshape request unless new raid set */
3998 /* Initiate a reshape. */
4004 DMWARN("Failed to check/start reshape, continuing without change");
4026 /* Only reduce raid set size before running a disk removing reshape. */