[sheepdog] [PATCH v4 17/18] collie: implement "collie cluster snapshot" subcommand

Liu Yuan namei.unix at gmail.com
Fri May 17 11:21:07 CEST 2013


On 05/17/2013 02:27 PM, Kai Zhang wrote:
> +	if (cluster_format(0, NULL) != SD_RES_SUCCESS)
> +		goto out;
> +
> +	if (farm_load_snapshot(idx, tag) != SD_RES_SUCCESS)
> +		goto out;

Maybe its better check tag or idx validity before format_cluster?

Thanks,
Yuan



More information about the sheepdog mailing list