From af18c636c44b1ea56296850e55afe0e4b2ce845c Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Thu, 30 Sep 2010 02:25:31 +0000 Subject: protocol/client: cluster/afr: Support lock recovery and self heal. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Vijay Bellur BUG: 865 (Add locks recovery support in GlusterFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=865 --- xlators/protocol/server/src/server3_1-fops.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xlators/protocol/server/src') diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index a0276ad6b..9c0ac90cd 100644 --- a/xlators/protocol/server/src/server3_1-fops.c +++ b/xlators/protocol/server/src/server3_1-fops.c @@ -4851,6 +4851,15 @@ server_lk (rpcsvc_request_t *req) case GF_LK_SETLKW: state->cmd = F_SETLKW; break; + case GF_LK_RESLK_LCK: + state->cmd = F_RESLK_LCK; + break; + case GF_LK_RESLK_LCKW: + state->cmd = F_RESLK_LCKW; + break; + case GF_LK_RESLK_UNLCK: + state->cmd = F_RESLK_UNLCK; + break; } gf_flock_to_flock (&args.flock, &state->flock); -- cgit