aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/msgr.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-12-22 14:24:33 -0500
committerSage Weil <sage@newdream.net>2009-12-23 11:17:22 -0500
commit6df058c025ce343052c5516b1d8a9a7e73cddd64 (patch)
tree58230bd258f71c2c3adf56a55d11ed39f404d12a /fs/ceph/msgr.h
parent0cf90ab5b075821940873e73cdbfeb8edc3dabe8 (diff)
ceph: include transaction id in ceph_msg_header (protocol change)
Many (most?) message types include a transaction id. By including it in the fixed size header, we always have it available even when we are unable to allocate memory for the (larger, variable sized) message body. This will allow us to error out the appropriate request instead of (silently) dropping the reply. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/msgr.h')
-rw-r--r--fs/ceph/msgr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/msgr.h b/fs/ceph/msgr.h
index c758e8f8f71b..e46d8b806dea 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 v024" 24#define CEPH_BANNER "ceph v025"
25#define CEPH_BANNER_MAX_LEN 30 25#define CEPH_BANNER_MAX_LEN 30
26 26
27 27
@@ -132,6 +132,7 @@ struct ceph_msg_connect_reply {
132 */ 132 */
133struct ceph_msg_header { 133struct ceph_msg_header {
134 __le64 seq; /* message seq# for this session */ 134 __le64 seq; /* message seq# for this session */
135 __le64 tid; /* transaction id */
135 __le16 type; /* message type */ 136 __le16 type; /* message type */
136 __le16 priority; /* priority. higher value == higher priority */ 137 __le16 priority; /* priority. higher value == higher priority */
137 __le16 version; /* version of message encoding */ 138 __le16 version; /* version of message encoding */