Bug 440952 - Files uploaded to CIFS corrupted
Summary: Files uploaded to CIFS corrupted
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: vsftpd
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Martin Nagy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-04 17:19 UTC by Peter Kuma
Modified: 2016-07-26 23:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-04 17:39:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Corrupted uploaded file (56.95 KB, text/plain)
2008-04-04 17:19 UTC, Peter Kuma
no flags Details

Description Peter Kuma 2008-04-04 17:19:43 UTC
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):
vsftpd 2.0.5-2
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)

How reproducible:

Upload file larger than a few kilobytes to a CIFS-mounted partition.
Reproducible with at least these FTP clients: gFTP, Filezilla.

Additional info:

Problem can be avoided by setting nobrl option of mount.cifs as suggested by
brigman on comp.os.linux.networking;
http://groups.google.com/group/comp.os.linux.networking/browse_thread/thread/5b2228ee622eb623.

From mount.cifs(8):
nobrl
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.

Comment 1 Peter Kuma 2008-04-04 17:19:43 UTC
Created attachment 301314 [details]
Corrupted uploaded file

Comment 2 Martin Nagy 2008-04-04 17:39:51 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.