diff options
| author | Amar Tumballi <amar@gluster.com> | 2010-07-20 01:23:17 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-20 20:44:14 -0700 | 
| commit | 9e3b58a2abdee5c1cf748eb463042ca9ef6aac66 (patch) | |
| tree | bf77466ac242b04427d9f3391a78fa6e4606d102 /glusterfsd/src/glusterfsd.c | |
| parent | e235a743d2b4d409945770a6d5f803360932bd3d (diff) | |
'glusterd' command
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
| -rw-r--r-- | glusterfsd/src/glusterfsd.c | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 76d07af770f..29debda4b9e 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -657,9 +657,9 @@ generate_uuid ()          return gf_strdup (tmp_str);  } -#define GF_SERVER_PROCESS 0 -#define GF_CLIENT_PROCESS 1 - +#define GF_SERVER_PROCESS   0 +#define GF_CLIENT_PROCESS   1 +#define GF_GLUSTERD_PROCESS 2  static uint8_t  gf_get_process_mode (char *exec_name) @@ -672,6 +672,8 @@ gf_get_process_mode (char *exec_name)          if (!strncmp (base, "glusterfsd", 10)) {                  ret = GF_SERVER_PROCESS; +        } else if (!strncmp (base, "glusterd", 8)) { +                ret = GF_GLUSTERD_PROCESS;          } else {                  ret = GF_CLIENT_PROCESS;          } @@ -872,6 +874,8 @@ parse_cmdline (int argc, char *argv[], cmd_args_t *cmd_args)              && (cmd_args->volfile == NULL)) {                  if (process_mode == GF_SERVER_PROCESS)                          cmd_args->volfile = gf_strdup (DEFAULT_SERVER_VOLFILE); +                else if (process_mode == GF_GLUSTERD_PROCESS) +                        cmd_args->volfile = gf_strdup (DEFAULT_GLUSTERD_VOLFILE);                  else                          cmd_args->volfile = gf_strdup (DEFAULT_CLIENT_VOLFILE);          }  | 
