From 9b60198b1a22228f85615e377c9b0cbe1e4f4ce6 Mon Sep 17 00:00:00 2001 From: Poornima G Date: Wed, 27 May 2015 12:55:50 +0530 Subject: Leases: Add a server side xlator to handle lease requests Before this patch, there was an effort to implement leases in upcall xlator, these patches by Soumya and me can be found @ http://review.gluster.org/#/c/10084/ Change-Id: I926728c7ec690727a8971039b240655882d02059 BUG: 1319992 Signed-off-by: Poornima G Reviewed-on: http://review.gluster.org/11643 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra Talur Reviewed-by: Rajesh Joseph Reviewed-by: Pranith Kumar Karampuri --- libglusterfs/src/glfs-message-id.h | 7 ++++++- libglusterfs/src/mem-types.h | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/glfs-message-id.h b/libglusterfs/src/glfs-message-id.h index d772dd37983..de7c494d326 100644 --- a/libglusterfs/src/glfs-message-id.h +++ b/libglusterfs/src/glfs-message-id.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2015 Red Hat, Inc. + Copyright (c) 2015-2016 Red Hat, Inc. This file is part of GlusterFS. This file is licensed to you under your choice of the GNU Lesser @@ -174,6 +174,11 @@ GLFS_MSGID_COMP_SYMLINK_CACHE_END #define GLFS_MSGID_COMP_DC GLFS_MSGID_COMP_PL_END #define GLFS_MSGID_COMP_DC_END (GLFS_MSGID_COMP_PL_END+\ GLFS_MSGID_SEGMENT) + +#define GLFS_MSGID_COMP_LEASES GLFS_MSGID_COMP_DC_END +#define GLFS_MSGID_COMP_LEASES_END (GLFS_MSGID_COMP_LEASES +\ + GLFS_MSGID_SEGMENT) + /* --- new segments for messages goes above this line --- */ #endif /* !_GLFS_MESSAGE_ID_H_ */ diff --git a/libglusterfs/src/mem-types.h b/libglusterfs/src/mem-types.h index e185a49ec21..09d096b83f5 100644 --- a/libglusterfs/src/mem-types.h +++ b/libglusterfs/src/mem-types.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2008-2012 Red Hat, Inc. + Copyright (c) 2008-2016 Red Hat, Inc. This file is part of GlusterFS. This file is licensed to you under your choice of the GNU Lesser @@ -164,6 +164,7 @@ enum gf_common_mem_types_ { /*used for compound fops*/ gf_mt_compound_req_t, gf_mt_compound_rsp_t, + gf_common_mt_tw_timer_list, gf_common_mt_end }; #endif -- cgit