From: Mikhail Campos Guadamuz <plageat90@gmail.com>
To: ceph-devel@vger.kernel.org
Cc: Mikhail Campos Guadamuz <plageat90@gmail.com>
Subject: [PATCH 2/2] No mds mount error print
Date: Sat, 7 Dec 2013 14:00:34 -0500 [thread overview]
Message-ID: <1386442834-4372-1-git-send-email-plageat90@gmail.com> (raw)
In-Reply-To: <1b8c4b9c49deb956e9d065b0677bfeaf17c968d2.1386442053.git.plageat90@gmail.com>
For http://tracker.ceph.com/issues/4386
We can handle ECOMM error returning by ceph kernel client
for printing understandable message about missing
active MDS state
Signed-off-by: Mikhail Campos Guadamuz <plageat90@gmail.com>
---
src/mount/mount.ceph.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c
index 5bbedd0..3ade629 100755
--- a/src/mount/mount.ceph.c
+++ b/src/mount/mount.ceph.c
@@ -358,6 +358,9 @@ int main(int argc, char *argv[])
case ENODEV:
printf("mount error: ceph filesystem not supported by the system\n");
break;
+ case ECOMM:
+ printf("mount error: can't find active mds\n");
+ break;
default:
printf("mount error %d = %s\n",errno,strerror(errno));
}
--
1.8.3.1
next prev parent reply other threads:[~2013-12-07 11:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-07 18:59 [PATCH 1/2] No MDS mount error fix Mikhail Campos Guadamuz
2013-12-07 13:59 ` Yan, Zheng
2013-12-09 12:02 ` Dzianis Huznou
2013-12-09 13:13 ` Yan, Zheng
2013-12-17 11:28 ` Dzianis Huznou
2013-12-07 19:00 ` Mikhail Campos Guadamuz [this message]
2013-12-09 14:26 ` Li Wang
2013-12-09 14:41 ` Li Wang
[not found] ` <CAN6N2SYZXgAKhu2mdBBr0=j2Dyry4Apr2EK0iMuCJiaK9_FczA@mail.gmail.com>
2013-12-10 1:25 ` Li Wang
2013-12-11 14:23 ` Mikhail_Campos-Guadamuz
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=1386442834-4372-1-git-send-email-plageat90@gmail.com \
--to=plageat90@gmail.com \
--cc=ceph-devel@vger.kernel.org \
/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