diff options
Diffstat (limited to 'xlators/protocol/client/src/client.c')
| -rw-r--r-- | xlators/protocol/client/src/client.c | 28 | 
1 files changed, 28 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index c37c1e25b44..4810f75ac25 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -2066,6 +2066,33 @@ out:          return 0;  } +int32_t +client_getactivelk (call_frame_t *frame, xlator_t *this, loc_t *loc, +                     dict_t *xdata) +{ +        int          ret                = -1; +        clnt_conf_t *conf               = NULL; +        rpc_clnt_procedure_t *proc      = NULL; +        clnt_args_t  args               = {0,}; + +        conf = this->private; +        if (!conf || !conf->fops) +                goto out; + + +        args.loc = loc; +        args.xdata = xdata; + +        proc = &conf->fops->proctable[GF_FOP_GETACTIVELK]; +        if (proc->fn) +                ret = proc->fn (frame, this, &args); +out: +        if (ret) +                STACK_UNWIND_STRICT (getactivelk, frame, -1, ENOTCONN, NULL, +                                     NULL); + +        return 0; +}  int32_t  client_getspec (call_frame_t *frame, xlator_t *this, const char *key, @@ -2893,6 +2920,7 @@ struct xlator_fops fops = {          .seek        = client_seek,          .lease       = client_lease,          .compound    = client_compound, +        .getactivelk = client_getactivelk,  };  | 
