diff options
author | Pawel Baldysiak <pawel.baldysiak@intel.com> | 2017-01-24 14:29:33 +0100 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-01-27 02:56:28 +0100 |
commit | 565cc99e341b3021ad26ff6da19a67d4e4abffde (patch) | |
tree | 8581496e43bc9769c7bdb820e86486ddcd86463d | |
parent | Makefile: Fix date to be output in ISO format (diff) | |
download | mdadm-565cc99e341b3021ad26ff6da19a67d4e4abffde.tar.xz mdadm-565cc99e341b3021ad26ff6da19a67d4e4abffde.zip |
imsm: fix missing error message during migration
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>
-rw-r--r-- | super-intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index 433bb6d3..d5e95179 100644 --- a/super-intel.c +++ b/super-intel.c @@ -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); |