diff options
author | Yehuda Sadeh <yehuda@newdream.net> | 2009-11-20 16:59:13 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-20 17:24:46 -0500 |
commit | dc14657c9c946f25b84a98e9ffa41b812a70699e (patch) | |
tree | 3ac124fd88bf85244114a3e7646b87b84ef6ae9d /fs/ceph/auth.c | |
parent | 94045e115ee72aee3b17295791da07078f2f778c (diff) |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ceph/auth.c b/fs/ceph/auth.c index c4d1eee827a..32f2e2a021a 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, | |||
169 | } | 169 | } |
170 | 170 | ||
171 | if (ac->negotiating) { | 171 | if (ac->negotiating) { |
172 | /* server does not support our protocols? */ | ||
173 | if (!protocol && result < 0) { | ||
174 | ret = result; | ||
175 | goto out; | ||
176 | } | ||
172 | /* set up (new) protocol handler? */ | 177 | /* set up (new) protocol handler? */ |
173 | if (ac->protocol && ac->protocol != protocol) { | 178 | if (ac->protocol && ac->protocol != protocol) { |
174 | ac->ops->destroy(ac); | 179 | ac->ops->destroy(ac); |