summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/legacy/server/src/server-resolve.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-06-29 03:39:16 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-01 03:31:47 -0700
commitc46f8452d75e2f1b4ab77306177f39bdbb4b232c (patch)
tree6c583bc3d79fdaab83aac6933c5848583ff1fe66 /xlators/protocol/legacy/server/src/server-resolve.c
parent0da2a6d08cc8fc2315742d010c8a8cab38ef75bb (diff)
backward compatibility of protocol
* made most of the 'legacy' server and transport functions as 'static' as they were getting cross linked with newer functions. * changed the name of few functions with prefix 'gf_' Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
Diffstat (limited to 'xlators/protocol/legacy/server/src/server-resolve.c')
-rw-r--r--xlators/protocol/legacy/server/src/server-resolve.c46
1 files changed, 25 insertions, 21 deletions
diff --git a/xlators/protocol/legacy/server/src/server-resolve.c b/xlators/protocol/legacy/server/src/server-resolve.c
index f0da94384eb..b5a1d2d0dd6 100644
--- a/xlators/protocol/legacy/server/src/server-resolve.c
+++ b/xlators/protocol/legacy/server/src/server-resolve.c
@@ -27,16 +27,20 @@
#include "compat-errno.h"
-int
+void
+gf_server_print_request (call_frame_t *frame);
+
+static int
server_resolve_all (call_frame_t *frame);
-int
+static int
resolve_entry_simple (call_frame_t *frame);
-int
+static int
resolve_inode_simple (call_frame_t *frame);
-int
+static int
resolve_path_simple (call_frame_t *frame);
-int
+
+static int
component_count (const char *path)
{
int count = 0;
@@ -53,7 +57,7 @@ component_count (const char *path)
}
-int
+static int
prepare_components (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -96,7 +100,7 @@ prepare_components (call_frame_t *frame)
}
-int
+static int
resolve_loc_touchup (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -135,7 +139,7 @@ resolve_loc_touchup (call_frame_t *frame)
}
-int
+static int
resolve_deep_continue (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -165,7 +169,7 @@ resolve_deep_continue (call_frame_t *frame)
}
-int
+static int
resolve_deep_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int op_ret, int op_errno, inode_t *inode, struct iatt *buf,
dict_t *xattr, struct iatt *postparent)
@@ -223,7 +227,7 @@ get_out_of_here:
}
-int
+static int
resolve_path_deep (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -253,7 +257,7 @@ resolve_path_deep (call_frame_t *frame)
}
-int
+static int
resolve_path_simple (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -317,7 +321,7 @@ out:
> 0 - indecisive, need to perform deep resolution
*/
-int
+static int
resolve_entry_simple (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -407,7 +411,7 @@ out:
}
-int
+static int
server_resolve_entry (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -438,7 +442,7 @@ server_resolve_entry (call_frame_t *frame)
}
-int
+static int
resolve_inode_simple (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -483,7 +487,7 @@ out:
}
-int
+static int
server_resolve_inode (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -514,7 +518,7 @@ server_resolve_inode (call_frame_t *frame)
}
-int
+static int
server_resolve_fd (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -543,7 +547,7 @@ server_resolve_fd (call_frame_t *frame)
}
-int
+static int
server_resolve (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -582,7 +586,7 @@ server_resolve (call_frame_t *frame)
}
-int
+static int
server_resolve_done (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -591,7 +595,7 @@ server_resolve_done (call_frame_t *frame)
state = CALL_STATE (frame);
bound_xl = BOUND_XL (frame);
- server_print_request (frame);
+ gf_server_print_request (frame);
state->resume_fn (frame, bound_xl);
@@ -603,7 +607,7 @@ server_resolve_done (call_frame_t *frame)
* This function is called multiple times, once per resolving one location/fd.
* state->resolve_now is used to decide which location/fd is to be resolved now
*/
-int
+static int
server_resolve_all (call_frame_t *frame)
{
server_state_t *state = NULL;
@@ -640,7 +644,7 @@ server_resolve_all (call_frame_t *frame)
int
-resolve_and_resume (call_frame_t *frame, server_resume_fn_t fn)
+gf_resolve_and_resume (call_frame_t *frame, server_resume_fn_t fn)
{
server_state_t *state = NULL;
xlator_t *this = NULL;