[sheepdog] [PATCH 3/5] sheep: use stored nr_copies and flags

Liu Yuan namei.unix at gmail.com
Thu Jul 19 08:40:33 CEST 2012


On 07/18/2012 07:41 PM, Christoph Hellwig wrote:
>  		/* Fresh node */
> -		if (!sys_stat_ok() && !sys_stat_halt()) {
> +		if (sys->status == SD_STATUS_WAIT_FOR_FORMAT) {

There is a helper sys_stat_wait_format() for SD_STATUS_WAIT_FOR_FORMAT.
Also I am not sure if we can change fresh node check into
SD_STATUS_WAIT_FOR_FORMAT. Is there possible for a fresh node with
SD_STATUS_WAIT_FOR_JOIN?

Thanks,
Yuan



More information about the sheepdog mailing list