[sheepdog] [PATCH 2/2] sheep: read inode header correctly in init_vdi_state()
MORITA Kazutaka
morita.kazutaka at gmail.com
Tue May 28 02:10:03 CEST 2013
At Tue, 28 May 2013 00:52:28 +0800,
Liu Yuan wrote:
>
> 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?
It's because, in the previous patch, epoch 0 is used to specify that
the object is in the working directory.
Thanks,
Kazutaka
More information about the sheepdog
mailing list