summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-09-06 03:35:02 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-06 02:21:52 -0700
commit8b30d3459fd92d8c16a009d145142c5b8fe4fe65 (patch)
tree3f37ab2e4e25fdfac15f70febc520fc0094cf1ea /xlators/protocol
parent3cb231e7970222a7360f982934edc5c6f8475883 (diff)
misc replace-brick fixes
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1235 (Bug for all pump/migrate commits) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1235
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/client/src/client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c
index f500a4612..6a6d0b5ff 100644
--- a/xlators/protocol/client/src/client.c
+++ b/xlators/protocol/client/src/client.c
@@ -849,7 +849,7 @@ is_client_rpc_init_command (dict_t *dict, xlator_t *this,
gf_boolean_t ret = _gf_false;
int dict_ret = -1;
- if (strncmp (this->name, "replace-brick", 13))
+ if (!strstr (this->name, "replace-brick"))
goto out;
dict_ret = dict_get_str (dict, CLIENT_CMD_CONNECT, value);
@@ -983,8 +983,11 @@ client_setxattr (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *dict,
}
conf = this->private;
- if (!conf->fops)
+ if (!conf->fops) {
+ op_errno = ENOTCONN;
+ need_unwind = 1;
goto out;
+ }
args.loc = loc;
args.dict = dict;