From 0c4b5814e7402658493f1e16ef7fa9a8fa8b4be5 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Sat, 28 Nov 2009 03:09:02 +0000 Subject: bring new MOP called NOTIFY. which can be used as a bridge between client and server processes, when needed. This mop is needed now, so that many features in 3.0.0 can come in with this without bumping protocol version. Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 201 (server should get notified about client 'umount') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=201 --- libglusterfs/src/glusterfs.h | 5 +++-- libglusterfs/src/protocol.h | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index f4d587ada4f..848e9ba7dca 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -135,9 +135,10 @@ typedef enum { GF_MOP_STATS, GF_MOP_SETSPEC, GF_MOP_GETSPEC, - GF_MOP_PING, + GF_MOP_PING, /* 5 */ GF_MOP_LOG, - GF_MOP_MAXVALUE /* 5 */ + GF_MOP_NOTIFY, + GF_MOP_MAXVALUE /* 8 */ } glusterfs_mop_t; typedef enum { diff --git a/libglusterfs/src/protocol.h b/libglusterfs/src/protocol.h index a87228a167e..ede5adae4e8 100644 --- a/libglusterfs/src/protocol.h +++ b/libglusterfs/src/protocol.h @@ -925,6 +925,14 @@ typedef struct { typedef struct { } __attribute__((packed)) gf_mop_ping_rsp_t; +typedef struct { + uint32_t flags; + char buf[0]; +} __attribute__((packed)) gf_mop_notify_req_t; +typedef struct { + uint32_t flags; + char buf[0]; +} __attribute__((packed)) gf_mop_notify_rsp_t; typedef struct { uint64_t ino; -- cgit