Bug ID 1174505
Summary rsync and mv command fails: "File exists" on cifs mount on kernel >= 5.7.8 with SMB protocol version 1.0
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Kernel
Assignee kernel-bugs@opensuse.org
Reporter ianmepham@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Firefox/78.0
Build Identifier: 

I have two folders shared on an old Windows retro gaming PC. In Tumbleweed I
have those shares mounted via /etc/fstab using cifs and the SMB protocol option
vers=1.0.
With kernel versions up to 5.7.7-1.2 rsync and mv would rename files correctly.
Since upgrading to kernel 5.7.9 rsync and mv are failing to rename files.
If I downgrade to kernel 5.7.7-1.2 rsync and mv can rename files again.
I've read that this only affects kernels >=5.7.8 in combination with cifs SMB
protocol 1.0.
I found this discussion on the samba mailing list where someone else has
already reported the problem and it specifically mentions the kernel patch
which introduced the regression:
https://lists.samba.org/archive/samba-technical/2020-July/135581.html


Reproducible: Always

Steps to Reproduce:
1.touch foo bar
2.mv -f foo bar

Actual Results:  
touch foo bar
mv -f foo bar
mv: cannot move 'foo' to 'bar': File exists

Expected Results:  
renamed 'foo' -> 'bar'

While I don't use an LTS kernel, I've noticed other users report the same
problem:
https://www.raspberrypi.org/forums/viewtopic.php?t=280530


You are receiving this mail because: