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>
This commit is contained in:
Sage Weil
2010-01-27 14:28:10 -08:00
parent 361be8601d
commit ac8839d7b2
4 changed files with 6 additions and 3 deletions

View File

@@ -138,6 +138,7 @@ static inline void ceph_encode_filepath(void **p, void *end,
{
u32 len = path ? strlen(path) : 0;
BUG_ON(*p + sizeof(ino) + sizeof(len) + len > end);
ceph_encode_8(p, 1);
ceph_encode_64(p, ino);
ceph_encode_32(p, len);
if (len)