summaryrefslogtreecommitdiffstats
path: root/fs/ceph/auth.c
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@newdream.net>2009-11-20 22:59:13 +0100
committerSage Weil <sage@newdream.net>2009-11-20 23:24:46 +0100
commitdc14657c9c946f25b84a98e9ffa41b812a70699e (patch)
tree3ac124fd88bf85244114a3e7646b87b84ef6ae9d /fs/ceph/auth.c
parentceph: decode updated mdsmap format (diff)
downloadlinux-dc14657c9c946f25b84a98e9ffa41b812a70699e.tar.xz
linux-dc14657c9c946f25b84a98e9ffa41b812a70699e.zip
ceph: mount fails immediately on error
Signed-off-by: Yehuda Sadeh <yehuda@newdream.net>
Diffstat (limited to 'fs/ceph/auth.c')
-rw-r--r--fs/ceph/auth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ceph/auth.c b/fs/ceph/auth.c
index c4d1eee827a3..32f2e2a021ab 100644
--- a/fs/ceph/auth.c
+++ b/fs/ceph/auth.c
@@ -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);