diff options
author | Yehuda Sadeh <yehuda@newdream.net> | 2009-11-20 22:59:13 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-20 23:24:46 +0100 |
commit | dc14657c9c946f25b84a98e9ffa41b812a70699e (patch) | |
tree | 3ac124fd88bf85244114a3e7646b87b84ef6ae9d /fs/ceph/auth.c | |
parent | ceph: decode updated mdsmap format (diff) | |
download | linux-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.c | 5 |
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); |