[sheepdog] [PATCH 4/6] sheep: pass vdi_iocb for vdi deletion

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Wed Apr 24 05:31:31 CEST 2013


At Mon, 22 Apr 2013 23:34:13 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  sheep/ops.c        |   14 +++++++++-----
>  sheep/sheep_priv.h |    4 +---
>  sheep/vdi.c        |   20 ++++++++++----------
>  3 files changed, 20 insertions(+), 18 deletions(-)
> 
> diff --git a/sheep/ops.c b/sheep/ops.c
> index c266a9f..3e0a9d3 100644
> --- a/sheep/ops.c
> +++ b/sheep/ops.c
> @@ -129,11 +129,14 @@ static int post_cluster_new_vdi(const struct sd_req *req, struct sd_rsp *rsp,
>  
>  static int cluster_del_vdi(struct request *req)
>  {
> -	const struct sd_req *hdr = &req->rq;
> -	uint32_t vid;
> +	struct sd_req *hdr = &req->rq;

Any reasons you remove 'const' here?

Thanks,

Kazutaka



More information about the sheepdog mailing list