diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2013-02-01 16:15:19 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-02-05 15:51:48 +1100 |
commit | 15c10423aa9435ed72bd292fecca69224a20fdc8 (patch) | |
tree | 411d56f93da59d31d145c028aac36b02e620cff2 /util.c | |
parent | 0f7bdf8946316548500858303549e396655450c5 (diff) | |
download | mdadm-15c10423aa9435ed72bd292fecca69224a20fdc8.tar.gz |
In case launching mdmon fails, print an error message before exiting
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1709,8 +1709,11 @@ int start_mdmon(int devnum) return -1; default: /* parent - good */ pid = wait(&status); - if (pid < 0 || status != 0) + if (pid < 0 || status != 0) { + pr_err("failed to launch mdmon. " + "Array remains readonly\n"); return -1; + } } return 0; } |