[sheepdog] [PATCH 4/9] sheep: refactor get_cluster_status

Liu Yuan namei.unix at gmail.com
Wed Jun 13 09:12:49 CEST 2012


On 06/12/2012 11:09 PM, Christoph Hellwig wrote:
> +static int get_cluster_status(struct sd_node *joined, struct sd_node *entries,
> +		int nr_entries, uint64_t ctime, uint32_t epoch,
> +		uint32_t *status, uint8_t *inc_epoch)
> +{
> +	*status = sys->status;
> +	if (inc_epoch)
> +		*inc_epoch = 0;

We don't need this defensive check for itnernal API. Same for
cluster_running_check().

Thanks,
Yuan




More information about the sheepdog mailing list