CIFS truncates files resulting in data corruption
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| linux-source-2.6.22 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: linux-image-
Test situation:
Server running Gutsy with samba share.
Client running Gutsy with share mounted using cifs.
Files on the share as accessed by the client are often reported as shorter than actual when the server is under load.
There was a CIFS fix in the .23 kernel which may be the solution to the problem:
- CIFS: fix corruption when server returns EAGAIN (#357001)
Our specific test case:
The samba server is a Xen dom0. The share has a large number of jpeg files (>100 000).
The client is a domU on the same hardware.
16 shell scripts were generated to run "convert" on 1/16th of the images.
The 16 shell scripts run in parallel.
A percentage fail with the error:
convert: Corrupt JPEG data: premature end of data segment
Likewise an attempt to cp can result in a file shorter than actual when under the above load.
Nick
| Changed in linux-source-2.6.22: | |
| assignee: | txwikinger → nobody |

Thanks for this report.
Could you please test this against the latest kernel in hardy and tell us if the problem still occurs there?
Thanks