From: Xiao Ni <xni@redhat.com>
To: linux-raid@vger.kernel.org
Cc: osamarin68@gmail.com, Jes.Sorensen@redhat.com
Subject: [MDADM PATCH 1/1] Add detail information when can not connect monitor
Date: Sun, 8 Jan 2017 10:59:54 +0800 [thread overview]
Message-ID: <1483844394-7647-1-git-send-email-xni@redhat.com> (raw)
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
next reply other threads:[~2017-01-08 2:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-08 2:59 Xiao Ni [this message]
2017-01-09 12:50 ` [MDADM PATCH 1/1] Add detail information when can not connect monitor Jes Sorensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1483844394-7647-1-git-send-email-xni@redhat.com \
--to=xni@redhat.com \
--cc=Jes.Sorensen@redhat.com \
--cc=linux-raid@vger.kernel.org \
--cc=osamarin68@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).