aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/ceph_fs.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-12 18:21:32 -0400
committerSage Weil <sage@newdream.net>2010-08-02 18:48:50 -0400
commit20cb34ae9e4b008a8789a48d52f5aa279dc400b6 (patch)
tree03b0c011ebaec2cb26c81f122b5432119976dc6b /fs/ceph/ceph_fs.h
parentce1fbc8dd657a4bbcf26c683c9d07c88db83fd86 (diff)
ceph: support v2 reconnect encoding
Encode either old or v2 encoding of client_reconnect message, depending on whether the peer has the FLOCK feature bit. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/ceph_fs.h')
-rw-r--r--fs/ceph/ceph_fs.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/ceph/ceph_fs.h b/fs/ceph/ceph_fs.h
index 5bf4ec2cf9eb..bb17a18cc190 100644
--- a/fs/ceph/ceph_fs.h
+++ b/fs/ceph/ceph_fs.h
@@ -635,12 +635,21 @@ struct ceph_mds_cap_reconnect {
635 __le64 cap_id; 635 __le64 cap_id;
636 __le32 wanted; 636 __le32 wanted;
637 __le32 issued; 637 __le32 issued;
638 __le64 snaprealm;
639 __le64 pathbase; /* base ino for our path to this ino */
640 __le32 flock_len; /* size of flock state blob, if any */
641} __attribute__ ((packed));
642/* followed by flock blob */
643
644struct ceph_mds_cap_reconnect_v1 {
645 __le64 cap_id;
646 __le32 wanted;
647 __le32 issued;
638 __le64 size; 648 __le64 size;
639 struct ceph_timespec mtime, atime; 649 struct ceph_timespec mtime, atime;
640 __le64 snaprealm; 650 __le64 snaprealm;
641 __le64 pathbase; /* base ino for our path to this ino */ 651 __le64 pathbase; /* base ino for our path to this ino */
642} __attribute__ ((packed)); 652} __attribute__ ((packed));
643/* followed by encoded string */
644 653
645struct ceph_mds_snaprealm_reconnect { 654struct ceph_mds_snaprealm_reconnect {
646 __le64 ino; /* snap realm base */ 655 __le64 ino; /* snap realm base */