aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/auth.c
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@newdream.net>2009-11-20 13:59:13 -0800
committerSage Weil <sage@newdream.net>2009-11-20 14:24:46 -0800
commitdc14657c9c946f25b84a98e9ffa41b812a70699e (patch)
tree3ac124fd88bf85244114a3e7646b87b84ef6ae9d /fs/ceph/auth.c
parent94045e115ee72aee3b17295791da07078f2f778c (diff)
downloadkernel_samsung_espresso10-dc14657c9c946f25b84a98e9ffa41b812a70699e.zip
kernel_samsung_espresso10-dc14657c9c946f25b84a98e9ffa41b812a70699e.tar.gz
kernel_samsung_espresso10-dc14657c9c946f25b84a98e9ffa41b812a70699e.tar.bz2
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 c4d1eee..32f2e2a 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);