[Sheepdog] [PATCH 3/3] sheep: add set/get_cluster_status()

Liu Yuan namei.unix at gmail.com
Tue Oct 18 08:51:07 CEST 2011


On 10/17/2011 10:05 PM, MORITA Kazutaka wrote:

> This patch is preparation for adding SD_STATUS_HALT support.
> 
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  sheep/sheep_priv.h |    2 ++
>  sheep/store.c      |   37 +++++++++++++++++++++++++++++++++++++
>  2 files changed, 39 insertions(+), 0 deletions(-)
> 
> diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
> index cccb986..a7d5c25 100644
> --- a/sheep/sheep_priv.h
> +++ b/sheep/sheep_priv.h
> @@ -210,6 +210,8 @@ int update_epoch_store(uint32_t epoch);
>  
>  int set_global_nr_copies(uint32_t copies);
>  int get_global_nr_copies(uint32_t *copies);
> +int set_cluster_flags(uint32_t flags);
> +int get_cluster_flags(uint32_t *flags);
>  


How about changing set/get_global_nr_copies() into
set/get_cluster_copies() in passing?

Thanks,
Yuan



More information about the sheepdog mailing list