diff mbox

[2/2] No mds mount error print

Message ID 1386442834-4372-1-git-send-email-plageat90@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mikhail Campos Guadamuz Dec. 7, 2013, 7 p.m. UTC
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 mbox

Patch

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