linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [MDADM PATCH 1/1] Add detail information when can not connect monitor
@ 2017-01-08  2:59 Xiao Ni
  2017-01-09 12:50 ` Jes Sorensen
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Ni @ 2017-01-08  2:59 UTC (permalink / raw)
  To: linux-raid; +Cc: osamarin68, Jes.Sorensen

If it can't connect monitor, now the error message is just
Error waiting for xxx to be clean. Add detail error message
in connect_monitor.

Suggested-by: Oleg Samarin <osamarin68@gmail.com>
Signed-off-by: Xiao Ni <xni@redhat.com>
---
 msg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/msg.c b/msg.c
index 45cd450..c66b0a1 100644
--- a/msg.c
+++ b/msg.c
@@ -171,6 +171,8 @@ int connect_monitor(char *devname)
 	addr.sun_family = PF_LOCAL;
 	strcpy(addr.sun_path, path);
 	if (connect(sfd, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
+		pr_err("Error connecting monitor with %s: %s\n",
+			addr.sun_path, strerror(errno));
 		close(sfd);
 		return -1;
 	}
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [MDADM PATCH 1/1] Add detail information when can not connect monitor
  2017-01-08  2:59 [MDADM PATCH 1/1] Add detail information when can not connect monitor Xiao Ni
@ 2017-01-09 12:50 ` Jes Sorensen
  0 siblings, 0 replies; 2+ messages in thread
From: Jes Sorensen @ 2017-01-09 12:50 UTC (permalink / raw)
  To: Xiao Ni; +Cc: linux-raid, osamarin68

Xiao Ni <xni@redhat.com> writes:
> If it can't connect monitor, now the error message is just
> Error waiting for xxx to be clean. Add detail error message
> in connect_monitor.
>
> Suggested-by: Oleg Samarin <osamarin68@gmail.com>
> Signed-off-by: Xiao Ni <xni@redhat.com>
> ---
>  msg.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied!

Thanks,
Jes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-09 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-08  2:59 [MDADM PATCH 1/1] Add detail information when can not connect monitor Xiao Ni
2017-01-09 12:50 ` Jes Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).