[Sheepdog] [PATCH v5 01/17] sheep: hide some minor store layout aware operations

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Fri Jan 6 07:23:08 CET 2012


At Thu, 05 Jan 2012 18:47:06 +0800,
Liu Yuan wrote:
> 
> On 01/05/2012 04:08 AM, MORITA Kazutaka wrote:
> 
> > It is not good to make a conditional branch based on the drvier name
> > here.
> > 
> > How about adding stat and jrnl_begin/end/recover to the store driver
> > interface?  Then, we can remove get_store_dir().
> > 
> 
> 
> This is just a dirty hack that is supposed to removed later when we add
> more backend drivers. If we really need to address it right now, how
> about add a new hook for get_store_dir()? This is kind of dirty &
> strange too, asking underlying backend where is object stored and I
> think only simple store need to implement it, not a generic interface
> too me.

I thought that the way to calculate storage usage depends on the
backend driver, so it was not a bad idea to abstract stat_sheep().
But if we remove get_store_dir() later, I think we don't do it for
now.

Thanks,

Kazutaka

> 
> > 
> > IIUC, the farm driver updates epoch in farm_begin_recover().  Why do
> > the two drivers update it in the different places?
> > 
> > Thanks,
> > 
> > Kazutaka
> 
> 
> Ah, yeah.
> 
> Thanks,
> Yuan
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list