ceph: mount fails immediately on error
[deliverable/linux.git] / fs / ceph / auth.c
index c4d1eee827a342d41e31671ae7c4fc551e7d2c52..32f2e2a021ab8c0c482959697987fab3aacac227 100644 (file)
@@ -169,6 +169,11 @@ int ceph_handle_auth_reply(struct ceph_auth_client *ac,
        }
 
        if (ac->negotiating) {
+               /* server does not support our protocols? */
+               if (!protocol && result < 0) {
+                       ret = result;
+                       goto out;
+               }
                /* set up (new) protocol handler? */
                if (ac->protocol && ac->protocol != protocol) {
                        ac->ops->destroy(ac);
This page took 0.028163 seconds and 5 git commands to generate.