[sheepdog] [PATCH 2/2] sheep: read inode header correctly in init_vdi_state()

Liu Yuan namei.unix at gmail.com
Mon May 27 18:52:28 CEST 2013


On 05/28/2013 12:43 AM, MORITA Kazutaka wrote:
> +	if (ret == SD_RES_NO_OBJ && iocb->epoch > 0 &&
> +	    iocb->epoch < sys_epoch()) {
>  		get_stale_obj_path(oid, iocb->epoch, path);
>  		ret = default_read_from_path(oid, path, iocb);

Why iocb>check > 0 is needed?

Thanks,
Yuan



More information about the sheepdog mailing list