[sheepdog] [PATCH] sheep: open files with O_EXCL when creating objects

Liu Yuan namei.unix at gmail.com
Fri Sep 14 04:30:32 CEST 2012


On 09/13/2012 05:30 PM, MORITA Kazutaka wrote:
> -		flags |= O_CREAT | O_TRUNC;
> +		flags |= O_CREAT | O_EXCL;

why drop O_TRUNC?

Thanks,
Yuan



More information about the sheepdog mailing list