[sheepdog] [PATCH v4 2/2] sheep: implement atomic create and write mechanism for config

Hitoshi Mitake mitake.hitoshi at gmail.com
Wed Apr 17 07:14:12 CEST 2013


At Wed, 17 Apr 2013 13:08:40 +0800,
Liu Yuan wrote:
> 
> On 04/16/2013 05:04 PM, Hitoshi Mitake wrote:
> > patch implements atomic creation and writing for it.
> 
> BTW, Could you abstract atomic_create_and_write(char *buf, size_t len)
> in util.c?
> 
> I am cooking a patch which will use this too, so after applying your
> patch, I can simply call it.

I agree with writing the function if there are two or more users. But
the abstraction will be a little bit difficult because of its nature:
we have to clean up temporal files during the initialization sequence.
Do you have an idea about this problem?

Or should we clean temporal files in the head of
atomic_create_and_write() simply?

Thanks,
Hitoshi



More information about the sheepdog mailing list