diff options
author | Sage Weil <sage@newdream.net> | 2010-01-27 17:28:10 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-29 15:41:09 -0500 |
commit | ac8839d7b264d0fa478fca7c4f9b6bb833540a80 (patch) | |
tree | c5dd4fbc61c2f96845c9198a6eb9840074ebcb8c /fs/ceph/decode.h | |
parent | 361be8601d78e488b5249032cc4e779b81d7928e (diff) |
ceph: include type in ceph_entity_addr, filepath
Include a type/version in ceph_entity_addr and filepath. Include extra
byte in filepath encoding as necessary.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/decode.h')
-rw-r--r-- | fs/ceph/decode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/decode.h b/fs/ceph/decode.h index 10de84896244..b90a33b948c7 100644 --- a/fs/ceph/decode.h +++ b/fs/ceph/decode.h | |||
@@ -138,6 +138,7 @@ static inline void ceph_encode_filepath(void **p, void *end, | |||
138 | { | 138 | { |
139 | u32 len = path ? strlen(path) : 0; | 139 | u32 len = path ? strlen(path) : 0; |
140 | BUG_ON(*p + sizeof(ino) + sizeof(len) + len > end); | 140 | BUG_ON(*p + sizeof(ino) + sizeof(len) + len > end); |
141 | ceph_encode_8(p, 1); | ||
141 | ceph_encode_64(p, ino); | 142 | ceph_encode_64(p, ino); |
142 | ceph_encode_32(p, len); | 143 | ceph_encode_32(p, len); |
143 | if (len) | 144 | if (len) |