SHA256
1
0
forked from pool/mdadm
mdadm/0002-In-case-launching-mdmon-fails-print-an-error-message.patch
Neil Brown e25ca3c260 - assemble-EXCL-race.fix: avoid some races during
array assembled- particularly at boot (bnc#793954)
- boot.md: make sure systemd-udev-trigger runs before
  boot.md to avoid races: bnc#793954
- mdmon@.service - new file plus patches to allow
  mdmon to be started by systemd, so it doesn't
  kill it (bnc#321366)

OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=85
2013-06-13 04:16:10 +00:00

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;
}