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

Anders Karlsson trudheim at gmail.com
Mon Feb 5 22:51:16 GMT 2007


On 2/5/07, Jeremy Allison <jra at samba.org> wrote:
>
> 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.
>

If we know that it is on the way, it will be good enough I think. If you
have
the change-set tag it's in, we may be able to extract and backport it
ourselves. If you don't have the tag, no worries. :)

Thanks!

-- 
Anders Karlsson <trudheim at gmail.com>


More information about the samba-technical mailing list