aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/auth_none.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-02-04 12:42:20 -0500
committerSage Weil <sage@newdream.net>2010-02-10 18:04:48 -0500
commit07c8739c521cb029d0f3549556aae2d304513978 (patch)
tree096f9775bfa1ca3092e9a5e223b0df4d5bcf0bc0 /fs/ceph/auth_none.c
parent9bd2e6f8ba71facf1cadb7154a7e0e4d345a6aba (diff)
ceph: add struct version to auth encoding
Inlucde struct version in encoding. This will streamline future protocol changes. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/auth_none.c')
-rw-r--r--fs/ceph/auth_none.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/auth_none.c b/fs/ceph/auth_none.c
index 631017eb7117..b4ef6f0a6c85 100644
--- a/fs/ceph/auth_none.c
+++ b/fs/ceph/auth_none.c
@@ -62,6 +62,7 @@ static int ceph_auth_none_create_authorizer(
62 if (!ai->built_authorizer) { 62 if (!ai->built_authorizer) {
63 p = au->buf; 63 p = au->buf;
64 end = p + sizeof(au->buf); 64 end = p + sizeof(au->buf);
65 ceph_encode_8(&p, 1);
65 ret = ceph_entity_name_encode(ac->name, &p, end - 8); 66 ret = ceph_entity_name_encode(ac->name, &p, end - 8);
66 if (ret < 0) 67 if (ret < 0)
67 goto bad; 68 goto bad;