diff options
| author | Kaushik BV <kaushikbv@gluster.com> | 2010-09-18 03:31:56 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-18 07:02:03 -0700 | 
| commit | 5c297be9612f76dad6f970092fb6762b4ee4844a (patch) | |
| tree | f65290e7f12e8d6913f3f3b8d3ffa8dc4cd06618 /libglusterfs/src/graph.c | |
| parent | faa817ea9cb119c7f65fce24f03a172fa4b4ada1 (diff) | |
Glusterd: gluster volume set <volume> <option> <value>
Signed-off-by: Kaushik BV <kaushikbv@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1159 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1159
Diffstat (limited to 'libglusterfs/src/graph.c')
| -rw-r--r-- | libglusterfs/src/graph.c | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 4adb04a39c3..c44fa44ad9b 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -495,6 +495,24 @@ glusterfs_graph_activate (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx)          return 0;  } +int +glusterfs_graph_reconfigure (glusterfs_graph_t *oldgraph, +                             glusterfs_graph_t *newgraph) +{ +        xlator_t *old_xl = NULL; +        xlator_t *new_xl = NULL; +        int ret = 0; + +        GF_ASSERT (oldgraph); +        GF_ASSERT (newgraph); + +        old_xl   = oldgraph->first; +        new_xl   = newgraph->first; + +        ret = xlator_tree_reconfigure (old_xl, new_xl); + +        return ret; +}  int  glusterfs_graph_destroy (glusterfs_graph_t *graph)  | 
