From b304333f8686468b2d3b2c60e040b1667d8c38c9 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 3 Sep 2010 13:59:06 +0000 Subject: gfid: change in create() prototype to have params dictionary with uuid in it Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati Signed-off-by: Vijay Bellur BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971 --- xlators/protocol/server/src/server-helpers.c | 5 +++++ xlators/protocol/server/src/server.h | 1 + xlators/protocol/server/src/server3_1-fops.c | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'xlators/protocol/server') diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index af1ba1a4eb8..eab8f571d93 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -105,6 +105,11 @@ free_state (server_state_t *state) state->fd = NULL; } + if (state->params) { + dict_unref (state->params); + state->params = NULL; + } + if (state->iobref) { iobref_unref (state->iobref); state->iobref = NULL; diff --git a/xlators/protocol/server/src/server.h b/xlators/protocol/server/src/server.h index b58e8a5fada..453eee57e1c 100644 --- a/xlators/protocol/server/src/server.h +++ b/xlators/protocol/server/src/server.h @@ -162,6 +162,7 @@ struct _server_state { int valid; fd_t *fd; + dict_t *params; int flags; int wbflags; struct iovec payload_vector[MAX_IOVEC]; diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index 7748ef81324..644b84a2072 100644 --- a/xlators/protocol/server/src/server3_1-fops.c +++ b/xlators/protocol/server/src/server3_1-fops.c @@ -2492,7 +2492,8 @@ server_create_resume (call_frame_t *frame, xlator_t *bound_xl) STACK_WIND (frame, server_create_cbk, bound_xl, bound_xl->fops->create, - &(state->loc), state->flags, state->mode, state->fd); + &(state->loc), state->flags, state->mode, + state->fd, state->params); return 0; err: -- cgit