[sheepdog] [PATCH 7/9] sheep: use copy_policy to control erasure vdi

MORITA Kazutaka morita.kazutaka at gmail.com
Tue Sep 24 10:32:08 CEST 2013


At Thu, 19 Sep 2013 18:42:51 +0800,
Liu Yuan wrote:
> 
> diff --git a/include/sheepdog_proto.h b/include/sheepdog_proto.h
> index ddc710f..1726234 100644
> --- a/include/sheepdog_proto.h
> +++ b/include/sheepdog_proto.h
> @@ -134,6 +134,8 @@ struct sd_req {
>  			uint32_t	base_vdi_id;
>  			uint32_t	copies;
>  			uint32_t	snapid;
> +			uint8_t		copy_policy;
> +			uint8_t		__pad[3];
>  		} vdi;
>  
>  		/* sheepdog-internal */
> @@ -149,6 +151,8 @@ struct sd_req {
>  			uint32_t	copies;
>  			uint8_t		set_bitmap; /* 0 means false */
>  						    /* others mean true */
> +			uint8_t		copy_policy;
> +			uint8_t		__pad[2];
>  		} vdi_state;
>  
>  		uint32_t		__pad[8];

I think padding is not necessary for req.vdi and req.vdi_state.

Thanks,

Kazutaka



More information about the sheepdog mailing list