diff options
author | Sage Weil <sage@newdream.net> | 2010-01-27 14:28:10 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-29 12:41:09 -0800 |
commit | ac8839d7b264d0fa478fca7c4f9b6bb833540a80 (patch) | |
tree | c5dd4fbc61c2f96845c9198a6eb9840074ebcb8c /fs/ceph/messenger.c | |
parent | 361be8601d78e488b5249032cc4e779b81d7928e (diff) | |
download | linux-3.10-ac8839d7b264d0fa478fca7c4f9b6bb833540a80.tar.gz linux-3.10-ac8839d7b264d0fa478fca7c4f9b6bb833540a80.tar.bz2 linux-3.10-ac8839d7b264d0fa478fca7c4f9b6bb833540a80.zip |
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/messenger.c')
-rw-r--r-- | fs/ceph/messenger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c index 81bc779adb9..e4e8d4439d3 100644 --- a/fs/ceph/messenger.c +++ b/fs/ceph/messenger.c @@ -1909,6 +1909,7 @@ struct ceph_messenger *ceph_messenger_create(struct ceph_entity_addr *myaddr) msgr->inst.addr = *myaddr; /* select a random nonce */ + msgr->inst.addr.type = 0; get_random_bytes(&msgr->inst.addr.nonce, sizeof(msgr->inst.addr.nonce)); encode_my_addr(msgr); |