From 8b9a144414162413a399d59975fe3b7347907f4f Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 3 Sep 2010 13:59:48 +0000 Subject: gfid: changes in mkdir() 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/client/src/client.c | 5 ++--- xlators/protocol/legacy/client/src/client-protocol.c | 3 ++- xlators/protocol/legacy/server/src/server-protocol.c | 3 ++- xlators/protocol/server/src/server3_1-fops.c | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) (limited to 'xlators/protocol') diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index ef33fbe891d..e5e5bd11198 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -387,10 +387,9 @@ out: } - -int32_t +int client_mkdir (call_frame_t *frame, xlator_t *this, loc_t *loc, - mode_t mode) + mode_t mode, dict_t *params) { int ret = -1; clnt_conf_t *conf = NULL; diff --git a/xlators/protocol/legacy/client/src/client-protocol.c b/xlators/protocol/legacy/client/src/client-protocol.c index 5e811949e09..e0f716ed965 100644 --- a/xlators/protocol/legacy/client/src/client-protocol.c +++ b/xlators/protocol/legacy/client/src/client-protocol.c @@ -1011,7 +1011,8 @@ unwind: * external reference through client_protocol_xlator->fops->mkdir */ int -client_mkdir (call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode) +client_mkdir (call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode, + dict_t *params) { gf_hdr_common_t *hdr = NULL; gf_fop_mkdir_req_t *req = NULL; diff --git a/xlators/protocol/legacy/server/src/server-protocol.c b/xlators/protocol/legacy/server/src/server-protocol.c index 730b4f8131d..4c48e75a9ec 100644 --- a/xlators/protocol/legacy/server/src/server-protocol.c +++ b/xlators/protocol/legacy/server/src/server-protocol.c @@ -4212,7 +4212,8 @@ server_mkdir_resume (call_frame_t *frame, xlator_t *bound_xl) STACK_WIND (frame, server_mkdir_cbk, bound_xl, bound_xl->fops->mkdir, - &(state->loc), state->mode); + &(state->loc), state->mode, + state->params); return 0; err: diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index 926a5574a42..ecafb57f52b 100644 --- a/xlators/protocol/server/src/server3_1-fops.c +++ b/xlators/protocol/server/src/server3_1-fops.c @@ -2011,7 +2011,7 @@ server_mkdir_resume (call_frame_t *frame, xlator_t *bound_xl) STACK_WIND (frame, server_mkdir_cbk, bound_xl, bound_xl->fops->mkdir, - &(state->loc), state->mode); + &(state->loc), state->mode, state->params); return 0; err: -- cgit