On Wed, 2015-11-25 at 10:46 +0000, Paul Durrant wrote:
> > Or maybe this is the behaviour of XS_MKDIR on a path/node which already
> > exists?
> > 
> 
> Yes, that's exactly it. I believe XS_MKDIR does guarantee to create a
> path empty, but will not clear an existing one.

Thanks.

I suppose clearing a node on mkdir would be an equally surprising semantic,
after all mkdir(1) doesn't remove all files in an existing directory.

It's a pity MKDIR doesn't follow mkdir(1) and return EEXIST, but we are
stuck with that I guess.

As well as the changes being considered here I wonder if any
libxl__xs_mkdir alike ought to include the existence check and error
return?

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to