diff options
author | Csaba Henk <csaba@gluster.com> | 2011-01-27 05:23:32 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-01-27 03:17:03 -0800 |
commit | 482d77b85d84bf5c2b48e4717f8d186967e42e63 (patch) | |
tree | 26464428f8bbb777a3c45e838214e3e0914f1c5a /xlators/mount/fuse/src/fuse-bridge.c | |
parent | a2a92b99fc031544ff8a87861d34b2bbbdd2753c (diff) |
implement "--client-pid" option which can forcibly set the pid value in messages to a predefined value
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2310 (georeplication)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2310
Diffstat (limited to 'xlators/mount/fuse/src/fuse-bridge.c')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 35fb9ec8374..44340e992f1 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -3503,6 +3503,10 @@ init (xlator_t *this_xl) if (ret != 0) priv->entry_timeout = 1.0; /* default */ + ret = dict_get_int32 (options, "client-pid", + &priv->client_pid); + if (ret == 0) + priv->client_pid_set = _gf_true; priv->direct_io_mode = 2; ret = dict_get_str (options, ZR_DIRECT_IO_OPT, &value_string); @@ -3656,5 +3660,8 @@ struct volume_options options[] = { { .key = {ZR_STRICT_VOLFILE_CHECK}, .type = GF_OPTION_TYPE_BOOL }, + { .key = {"client-pid"}, + .type = GF_OPTION_TYPE_INT + }, { .key = {NULL} }, }; |