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

Jeremy Allison jra at samba.org
Mon Feb 5 20:53:32 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?

Ok, I've tested this on the lastest svn code (SAMBA_3_0_25)
and "mkdir -p foo/bar" works correctly. I'm going to consider
this fixed in the next stable release, so let me know if you
need something earlier.

Jeremy.


More information about the samba-technical mailing list