[PATCH 2/2] No mds mount error print

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux