]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: fix missing error message during migration
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Tue, 24 Jan 2017 13:29:33 +0000 (14:29 +0100)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Fri, 27 Jan 2017 01:56:28 +0000 (20:56 -0500)
If user tries to migrate from raid0 to raid5 and there is no spare
drive to perform it - mdadm will exit with errorcode, but
no error message is printed.

Print error instead of debug message when this condition occurs,
so user is informed why requested migration is not started.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
super-intel.c

index 433bb6d3df2c59be3c5f8c5c94ecba294e030356..d5e9517964a91184244421dbe8f8c0cfd9929182 100644 (file)
@@ -10718,7 +10718,7 @@ static int imsm_create_metadata_update_for_migration(
                        free(u);
                        sysfs_free(spares);
                        update_memory_size = 0;
-                       dprintf("error: cannot get spare device for requested migration");
+                       pr_err("cannot get spare device for requested migration\n");
                        return 0;
                }
                sysfs_free(spares);