forked from pool/mdadm
29 lines
782 B
Diff
29 lines
782 B
Diff
|
References: bnc#821366
|
||
|
Git-commit: 15c10423aa9435ed72bd292fecca69224a20fdc8
|
||
|
From: Jes Sorensen <Jes.Sorensen@redhat.com>
|
||
|
Date: Fri, 1 Feb 2013 16:15:19 +0100
|
||
|
Subject: [PATCH] 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>
|
||
|
---
|
||
|
util.c | 5 ++++-
|
||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||
|
|
||
|
--- mdadm-3.2.6.orig/util.c
|
||
|
+++ mdadm-3.2.6/util.c
|
||
|
@@ -1697,8 +1697,11 @@ int start_mdmon(int devnum)
|
||
|
return -1;
|
||
|
default: /* parent - good */
|
||
|
pid = wait(&status);
|
||
|
- if (pid < 0 || status != 0)
|
||
|
+ if (pid < 0 || status != 0) {
|
||
|
+ fprintf(stderr, Name ":failed to launch mdmon. "
|
||
|
+ "Array remains readonly\n");
|
||
|
return -1;
|
||
|
+ }
|
||
|
}
|
||
|
return 0;
|
||
|
}
|