diff options
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
| -rw-r--r-- | glusterfsd/src/glusterfsd.c | 28 | 
1 files changed, 28 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index dd89c47ff43..3f546816892 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -241,6 +241,8 @@ static struct argp_option gf_options[] = {           " [default: \"yes\"]"},          {"secure-mgmt", ARGP_SECURE_MGMT_KEY, "BOOL", OPTION_ARG_OPTIONAL,           "Override default for secure (SSL) management connections"}, +        {"event-history", ARGP_FUSE_EVENT_HISTORY_KEY, "BOOL", +         OPTION_ARG_OPTIONAL, "disable/enable fuse event-history"},          {0, 0, 0, 0, "Miscellaneous Options:"},          {0, }  }; @@ -551,6 +553,15 @@ set_fuse_mount_options (glusterfs_ctx_t *ctx, dict_t *options)                          goto err;                  }          } +        if (cmd_args->event_history) { +                ret = dict_set_str (options, "event-history", +                                    cmd_args->event_history); +                if (ret < 0) { +                        gf_msg ("glusterfsd", GF_LOG_ERROR, 0, glusterfsd_msg_4, +                                "event-history"); +                        goto err; +                } +        }          ret = 0;  err:          return ret; @@ -1272,6 +1283,23 @@ no_oom_api:                  argp_failure (state, -1, 0,                                "unknown secure-mgmt setting \"%s\"", arg);                  break; +        case ARGP_FUSE_EVENT_HISTORY_KEY: +                if (!arg) +                        arg = "no"; + +                if (gf_string2boolean (arg, &b) == 0) { +                        if (b) { +                                cmd_args->event_history = "yes"; +                        } else { +                                cmd_args->event_history = "no"; +                        } + +                        break; +                } + +                argp_failure (state, -1, 0, +                              "unknown event-history setting \"%s\"", arg); +                break;  	}          return 0;  | 
