diff options
author | Amar Tumballi <amar@gluster.com> | 2010-06-23 04:01:24 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-06-24 10:32:14 -0700 |
commit | b8b2a9d2f49686d5056fb0ce6150cf9c54180b12 (patch) | |
tree | 30e9594dc84dca425a37971324661a10285b75ef /xlators/protocol/rpc/rpc-lib/src | |
parent | e82ca8fc5164f4ba2ff396da86b4a490d9a47370 (diff) |
change volume file options back to 'transport' from 'rpc-transport'
This helps to keep the backword compatibility with old volume files.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
Diffstat (limited to 'xlators/protocol/rpc/rpc-lib/src')
-rw-r--r-- | xlators/protocol/rpc/rpc-lib/src/rpc-transport.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/xlators/protocol/rpc/rpc-lib/src/rpc-transport.c b/xlators/protocol/rpc/rpc-lib/src/rpc-transport.c index da3ba3521..577158904 100644 --- a/xlators/protocol/rpc/rpc-lib/src/rpc-transport.c +++ b/xlators/protocol/rpc/rpc-lib/src/rpc-transport.c @@ -856,14 +856,14 @@ rpc_transport_load (glusterfs_ctx_t *ctx, dict_t *options, char *trans_name) type = str; /* Backward compatibility */ - ret = dict_get_str (options, "rpc-transport-type", &type); + ret = dict_get_str (options, "transport-type", &type); if (ret < 0) { - ret = dict_set_str (options, "rpc-transport-type", "socket"); + ret = dict_set_str (options, "transport-type", "socket"); if (ret < 0) gf_log ("dict", GF_LOG_DEBUG, - "setting rpc-transport-type failed"); + "setting transport-type failed"); gf_log ("rpc-transport", GF_LOG_WARNING, - "missing 'option rpc-transport-type'. defaulting to " + "missing 'option transport-type'. defaulting to " "\"socket\""); } else { { @@ -883,11 +883,11 @@ rpc_transport_load (glusterfs_ctx_t *ctx, dict_t *options, char *trans_name) (is_ibsdp == 0)) { if (is_unix == 0) ret = dict_set_str (options, - "rpc-transport.address-family", + "transport.address-family", "unix"); if (is_ibsdp == 0) ret = dict_set_str (options, - "rpc-transport.address-family", + "transport.address-family", "inet-sdp"); if (ret < 0) @@ -895,17 +895,17 @@ rpc_transport_load (glusterfs_ctx_t *ctx, dict_t *options, char *trans_name) "setting address-family failed"); ret = dict_set_str (options, - "rpc-transport-type", "socket"); + "transport-type", "socket"); if (ret < 0) gf_log ("dict", GF_LOG_DEBUG, - "setting rpc-transport-type failed"); + "setting transport-type failed"); } } - ret = dict_get_str (options, "rpc-transport-type", &type); + ret = dict_get_str (options, "transport-type", &type); if (ret < 0) { gf_log ("rpc-transport", GF_LOG_ERROR, - "'option rpc-transport-type <xx>' missing in volume '%s'", + "'option transport-type <xx>' missing in volume '%s'", trans_name); goto fail; } @@ -922,7 +922,7 @@ rpc_transport_load (glusterfs_ctx_t *ctx, dict_t *options, char *trans_name) if (handle == NULL) { gf_log ("rpc-transport", GF_LOG_ERROR, "%s", dlerror ()); gf_log ("rpc-transport", GF_LOG_ERROR, - "volume '%s': rpc-transport-type '%s' is not valid or " + "volume '%s': transport-type '%s' is not valid or " "not found on this machine", trans_name, type); goto fail; |