summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.h
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-09-01 13:01:23 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-01 11:43:51 -0700
commit1d6e57d4a8bf4d69f724774d019f3cb7b4c0e1c3 (patch)
tree752a6c09bb482dd764edf2de3208723bc213ff27 /xlators/mgmt/glusterd/src/glusterd.h
parent5772cbf49f331557a217f1e31b681afa8d94080a (diff)
mgmt/glusterd: gnfs support in gluster command line
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1319 (gnfs support in gluster command line) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1319
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h
index df3bc9ee167..b7027b97ca2 100644
--- a/xlators/mgmt/glusterd/src/glusterd.h
+++ b/xlators/mgmt/glusterd/src/glusterd.h
@@ -175,6 +175,11 @@ enum glusterd_vol_comp_status_ {
typedef ssize_t (*gd_serialize_t) (struct iovec outmsg, void *args);
+#define GLUSTERD_GET_NFS_DIR(path, priv) \
+ do { \
+ snprintf (path, PATH_MAX, "%s/nfs", priv->workdir);\
+ } while (0); \
+
#define GLUSTERD_GET_VOLUME_DIR(path, volinfo, priv) \
snprintf (path, PATH_MAX, "%s/vols/%s", priv->workdir,\
volinfo->volname);
@@ -184,6 +189,10 @@ typedef ssize_t (*gd_serialize_t) (struct iovec outmsg, void *args);
GLUSTERD_VOLUME_DIR_PREFIX, volinfo->volname, \
GLUSTERD_BRICK_INFO_DIR);
+#define GLUSTERD_GET_NFS_PIDFILE(pidfile) \
+ snprintf (pidfile, PATH_MAX, "%s/nfs/run/nfs.pid", \
+ priv->workdir); \
+
#define GLUSTERD_REMOVE_SLASH_FROM_PATH(path,string) do { \
int i = 0; \
for (i = 1; i < strlen (path); i++) { \