'mkdir -p foo/bar' fails on CIFS share

Jeremy Allison jra at samba.org
Sat Feb 3 20:41:06 GMT 2007

On Sat, Feb 03, 2007 at 08:34:30PM +0000, Anders Karlsson wrote:
> Hi there,
> Observed behaviour on a share mounted from a Samba server (3.0.23c) and
> CIFS client 1.46 on a FC6 system;
> mkdir -p foo/bar                       FAIL, but creates 'foo'
> mkdir foo foo/bar                      FAIL, but creates 'foo'
> mkdir foo ; mkdir foo/bar              FAIL, but creates 'foo'
> mkdir foo ; sleep 1 ; mkdir foo/bar    SUCCESS
> The FAILs return -EACCES on the mkdir call for foo/bar and a -ENOENT on
> foo/bar for a stat64 call as well. Is this expected behaviour, or is
> there a client (or server) problem here?

Not sure, I'll test this. EACCESS is the wrong return
for mkdir foo/bar, should be ENOENT. Possibly the
server is returning the wrong default error code.

This should work much better in current svn code,
there's been a lot of work put into the correct
error code returns. I'll test this - thanks !


More information about the samba-technical mailing list