[sheepdog] [PATCH 2/2] use xmkdir where possible

MORITA Kazutaka morita.kazutaka at gmail.com
Thu Mar 21 16:47:09 CET 2013


> diff --git a/sheep/md.c b/sheep/md.c
> index 0bbb160..3569acc 100644
> --- a/sheep/md.c
> +++ b/sheep/md.c
> @@ -114,8 +114,7 @@ int md_init_disk(char *path)
>  {
>  	md_nr_disks++;
>  
> -	if (mkdir(path, def_dmode) < 0)
> -		if (errno != EEXIST)
> +	if (xmkdir(path, def_dmode) < 0)
>  			panic("%s, %m", path);

This line should also be indented correctly.

I've applied this series after fixing the above trivial issue, thanks!

Kazutaka



More information about the sheepdog mailing list