diff options
| author | Amar Tumballi <amarts@redhat.com> | 2013-07-31 23:58:04 +0530 | 
|---|---|---|
| committer | Anand Avati <avati@redhat.com> | 2013-08-21 12:13:16 -0700 | 
| commit | df9bfff8ea08176a3874fb0cdec8fd4b988d3ffa (patch) | |
| tree | 47a4bd23277bd45a96e666bcd9da531d0166e520 /libglusterfs/src/graph.c | |
| parent | 271804a26ca73c2eab706eff4b3be9a62bec2b13 (diff) | |
core: changes to support gfid-access
Change-Id: I38d2fdc47e4b805deafca6805e54807976ffdb7e
Signed-off-by: Amar Tumballi <amarts@redhat.com>
BUG: 952029
Reviewed-on: http://review.gluster.org/5496
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src/graph.c')
| -rw-r--r-- | libglusterfs/src/graph.c | 23 | 
1 files changed, 23 insertions, 0 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 8a84d4cbc16..1dba63fc052 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -213,6 +213,21 @@ glusterfs_graph_mac_compat (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx)          return ret;  } +int +glusterfs_graph_gfid_access (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx) +{ +        int ret = 0; +        cmd_args_t      *cmd_args = NULL; + +        cmd_args = &ctx->cmd_args; + +        if (!cmd_args->aux_gfid_mount) +                return 0; + +        ret = glusterfs_graph_insert (graph, ctx, "features/gfid-access", +                                      "gfid-access-autoload", 1); +        return ret; +}  static void  gf_add_cmdline_options (glusterfs_graph_t *graph, cmd_args_t *cmd_args) @@ -441,6 +456,14 @@ glusterfs_graph_prepare (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx)                  return -1;          } +        /* XXX: gfid-access */ +        ret = glusterfs_graph_gfid_access (graph, ctx); +        if (ret) { +                gf_log ("graph", GF_LOG_ERROR, +                        "glusterfs graph 'gfid-access' failed"); +                return -1; +        } +          /* XXX: this->ctx setting */          for (trav = graph->first; trav; trav = trav->next) {                  trav->ctx = ctx;  | 
