From 1d6e57d4a8bf4d69f724774d019f3cb7b4c0e1c3 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 1 Sep 2010 13:01:23 +0000 Subject: mgmt/glusterd: gnfs support in gluster command line Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1319 (gnfs support in gluster command line) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1319 --- xlators/mgmt/glusterd/src/glusterd-volgen.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.h b/xlators/mgmt/glusterd/src/glusterd-volgen.h index 0ec8cc769..bee572646 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.h +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.h @@ -37,6 +37,12 @@ #include "cli1.h" #include "glusterd-mem-types.h" +#define VOLGEN_GET_NFS_DIR(path) \ + do { \ + glusterd_conf_t *priv = THIS->private; \ + snprintf (path, PATH_MAX, "%s/nfs", priv->workdir);\ + } while (0); \ + #define VOLGEN_GET_VOLUME_DIR(path, volinfo) \ do { \ glusterd_conf_t *priv = THIS->private; \ @@ -130,4 +136,9 @@ glusterd_delete_volfile (glusterd_volinfo_t *volinfo, int32_t glusterd_default_xlator_options (glusterd_volinfo_t *volinfo); +char * +glusterd_get_nfs_filepath (); + +int +volgen_generate_nfs_volfile (glusterd_volinfo_t *volinfo); #endif -- cgit