[sheepdog] [PATCH 2/3] util:add a new API atomic_create_and_write()

Hitoshi Mitake mitake.hitoshi at gmail.com
Wed Apr 17 08:28:59 CEST 2013


At Wed, 17 Apr 2013 14:10:01 +0800,
Liu Yuan wrote:
> 
> On 04/17/2013 01:45 PM, Hitoshi Mitake wrote:
> > +	fd = open(tmp_path, O_WRONLY | O_CREAT | O_SYNC,
> > +		S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP);
> 
> use def_fmode.

BTW, def_fmode is currently declared in sheep/store.c. Is it allowed
to move the variable to util.c?

Thanks,
Hitoshi



More information about the sheepdog mailing list