[Samba] Bug when copying files from a Samba directory mounted by cifs

Jeremy Allison jra at samba.org
Mon Jun 4 16:30:11 UTC 2018


On Mon, Jun 04, 2018 at 03:55:52PM +0100, Andrew Wood via samba wrote:
> Hello,
> 
> I've been having a problem copying files from a Samba directory, mounted by cifs
> so that it's accessible from a Linux machine.
> 
> The autofs service is used to mount the Samba directory on /samba/public/name
> with mount options "-fstype=cifs,guest,file_mode=0664,dir_mode=0775".
> 
> If I do this:
>    touch /samba/public/name/foo    # create an empty file
>    cp /samba/public/name/foo .
> 
> then the copy of 'foo' seems to keep growing and will eventually fill up the
> disk partition, unless the 'cp' process is killed.
> 
> I've found I can work around this problem by using 'rsync' or 'smbclient'
> instead. 'scp' gives the same problem as 'cp'.
> 
> The Samba server is a Docker container running CentOS 6.9, and Samba 3.6.23.
> 
> The clients are running OpenSUSE Leap 42.3, and cifs-utils 6.5-5.1.
> 
> Can anyone help with this? Is it a known bug?

Not a known bug on the Samba side. Might be a possible
cifsfs bug. The version of Samba you're using is very
old though, and well out of support.



More information about the samba mailing list