diff options
author | Amar Tumballi <amar@gluster.com> | 2009-11-28 03:09:02 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-01 19:48:37 -0800 |
commit | 0c4b5814e7402658493f1e16ef7fa9a8fa8b4be5 (patch) | |
tree | 76c1df16941e2560abc59bc220944e0ee7636980 | |
parent | 0a6b3ce3bf4acd994cb67c9c79b7c03909443bdd (diff) |
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 <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 201 (server should get notified about client 'umount')
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=201
-rw-r--r-- | libglusterfs/src/glusterfs.h | 5 | ||||
-rw-r--r-- | libglusterfs/src/protocol.h | 8 |
2 files changed, 11 insertions, 2 deletions
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; |