Red Hat Bugzilla – Bug 440952
Files uploaded to CIFS corrupted
Last modified: 2016-07-26 19:46:56 EDT
Description of problem:
Files uploaded to CIFS file system are corrupted. Blocks of data are interleaved
with blocks of zero bytes. Blocks are always multiples of kilobytes, e.g. 36B of
data, 4B of \0, 4B of data, 8B of \0, and so on.
CIFS partition is mounted with default options.
Files copied directly or uploaded over SCP are fine.
Example file is attached.
Version-Release number of selected component (if applicable):
Linux <hostname> 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686 GNU/Linux
Debian GNU/Linux etch (stable)
Upload file larger than a few kilobytes to a CIFS-mounted partition.
Reproducible with at least these FTP clients: gFTP, Filezilla.
Problem can be avoided by setting nobrl option of mount.cifs as suggested by
brigman on comp.os.linux.networking;
Do not send byte range lock requests to the server. This is nec-
essary for certain applications that break with cifs style
mandatory byte range locks (and most cifs servers do not yet
support requesting advisory byte range locks).
If not fixed it should be at least mentioned in vsftpd.conf(5) man page.
Created attachment 301314 [details]
Corrupted uploaded file
Sorry, but this is not specific to Fedora. If you want to get this fixed I
suggest that you contact the vsftpd maintainer. Hence closing this bug with a
resolution of NOTABUG.