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/msgr.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/msgr.h')
-rw-r--r-- | fs/ceph/msgr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ceph/msgr.h b/fs/ceph/msgr.h index 40b6189aa9e3..8aaab414f3f8 100644 --- a/fs/ceph/msgr.h +++ b/fs/ceph/msgr.h | |||
@@ -21,7 +21,7 @@ | |||
21 | * whenever the wire protocol changes. try to keep this string length | 21 | * whenever the wire protocol changes. try to keep this string length |
22 | * constant. | 22 | * constant. |
23 | */ | 23 | */ |
24 | #define CEPH_BANNER "ceph v026" | 24 | #define CEPH_BANNER "ceph v027" |
25 | #define CEPH_BANNER_MAX_LEN 30 | 25 | #define CEPH_BANNER_MAX_LEN 30 |
26 | 26 | ||
27 | 27 | ||
@@ -61,7 +61,8 @@ extern const char *ceph_entity_type_name(int type); | |||
61 | * entity_addr -- network address | 61 | * entity_addr -- network address |
62 | */ | 62 | */ |
63 | struct ceph_entity_addr { | 63 | struct ceph_entity_addr { |
64 | __le64 nonce; /* unique id for process (e.g. pid) */ | 64 | __le32 type; |
65 | __le32 nonce; /* unique id for process (e.g. pid) */ | ||
65 | struct sockaddr_storage in_addr; | 66 | struct sockaddr_storage in_addr; |
66 | } __attribute__ ((packed)); | 67 | } __attribute__ ((packed)); |
67 | 68 | ||