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

Liu Yuan namei.unix at gmail.com
Wed Apr 17 07:17:10 CEST 2013


On 04/17/2013 01:14 PM, Hitoshi Mitake wrote:
> 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?
> 

We can assume the temporal file will be strictly named path.tmp. So the
cleaning of path.tmp is up to the caller. This is no problem because we
use it internally, it is not a library function used externally.

Thanks,
Yuan



More information about the sheepdog mailing list