[sheepdog] [PATCH] sheep: don't try to get vdi bitmap when cluster not formated

Liu Yuan namei.unix at gmail.com
Wed May 30 10:29:05 CEST 2012


On 05/30/2012 04:00 PM, Liu Yuan wrote:

> From: Liu Yuan <tailai.ly at taobao.com>
> 
> This will speed up nodes setup a lot for the first time
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  sheep/group.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sheep/group.c b/sheep/group.c
> index bdea350..8818c0c 100644
> --- a/sheep/group.c
> +++ b/sheep/group.c
> @@ -682,6 +682,7 @@ static void update_cluster_info(struct join_message *msg,
>  	}
>  
>  	if (!sys_stat_ok() &&
> +	    !sys_stat_wait_format() &&
>  	    (msg->cluster_status == SD_STATUS_OK ||
>  	     msg->cluster_status != SD_STATUS_HALT)) {
>  		int array_len = nr_nodes * sizeof(struct sd_node);


Ummm, there is something wrong with the patch, a new node is inited as
wait_for_format...I'll prepare for a second version.

Thanks,
Yuan



More information about the sheepdog mailing list