]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: Remove user warning before reshape start
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 8 Jun 2011 07:14:33 +0000 (17:14 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 8 Jun 2011 07:14:33 +0000 (17:14 +1000)
imsm's arrays supports imsm native check-pointing now.
User warning is no longer required.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index f277d9d98094ecf647b10d55464fd7a6050318db..b8d8b4eb6269c1e23531c1bbb505a8ee401ba193 100644 (file)
@@ -8404,30 +8404,6 @@ int imsm_takeover(struct supertype *st, struct geo_params *geo)
        return 0;
 }
 
-static int warn_user_about_risk(void)
-{
-       int rv = 0;
-
-       fprintf(stderr,
-               "\nThis is an experimental feature. Data on the RAID volume(s) "
-               "can be lost!!!\n\n"
-               "To continue command execution please make sure that\n"
-               "the grow process will not be interrupted. Use safe power\n"
-               "supply to avoid unexpected system reboot. Make sure that\n"
-               "reshaped container is not assembled automatically during\n"
-               "system boot.\n"
-               "If reshape is interrupted, assemble array manually\n"
-               "using e.g. '-Ac' option and up to date mdadm.conf file.\n"
-               "Assembly in scan mode is not possible in such case.\n"
-               "Growing container with boot array is not possible.\n"
-               "If boot array reshape is interrupted, whole file system\n"
-               "can be lost.\n\n");
-       rv = ask("Do you want to continue? ");
-       fprintf(stderr, "\n");
-
-       return rv;
-}
-
 static int imsm_reshape_super(struct supertype *st, long long size, int level,
                              int layout, int chunksize, int raid_disks,
                              int delta_disks, char *backup, char *dev,
@@ -8461,13 +8437,6 @@ static int imsm_reshape_super(struct supertype *st, long long size, int level,
                dprintf("imsm: info: Container operation\n");
                int old_raid_disks = 0;
 
-               /* this warning will be removed when imsm checkpointing
-                * will be implemented, and restoring from check-point
-                * operation will be transparent for reboot process
-                */
-               if (warn_user_about_risk() == 0)
-                       return ret_val;
-
                if (imsm_reshape_is_allowed_on_container(
                            st, &geo, &old_raid_disks)) {
                        struct imsm_update_reshape *u = NULL;