[Sheepdog] [RFC] [PATCH] journaling support for atomic operations

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun Dec 5 17:51:39 CET 2010


At Fri, 26 Nov 2010 13:43:40 +0530,
Narendra Prasad Madanapalli wrote:
> >> +
> >> +int  jrnl_writte_data_to_targe_vdi_object(jrnl_file_desc_t *jfd, void *data)
> >> +{
> >> +     //
> >> +     // FIXME: Need to implement this function
> >> +     //
> >> +
> >> +     return 0;
> >> +}
> >
> > What's the difference between jrnl_apply_to_targe_vdi_object() and
> > jrnl_write_data_to_target_vdi_object()?  When do we use
> > jrnl_write_data_to_target_vdi_object()?
> 
> Which is same as jrnl_apply_to_targe_vdi_object() except it directly
> writes data into vdi object rather than reading from journal and
> writing into vdi object.
> The thought behind this is to replace code snippets that responsible
> for writing data to vdi objects with this function.
> 
> Any ideas?

I'm not sure yet when exactly it is used, but I'm not against adding
such a function.


Thanks,

Kazutaka



More information about the sheepdog mailing list