← Back to team overview

kernel-packages team mailing list archive

[Bug 879228] Re: files written to CIFS share are sometimes corrupted

 

Nick Davis, the upstream patch is available in Precise as per:
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-precise.git;a=commit;h=bdac3a105a1c8fdf89ea15404ad5c7bcec73d37a

If this did not address your issue, could you please execute the following in a terminal:
apport-collect 879228

** Changed in: linux (Ubuntu)
       Status: Triaged => Invalid

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/879228

Title:
  files written to CIFS share are sometimes corrupted

Status in Samba:
  Fix Released
Status in “linux” package in Ubuntu:
  Invalid

Bug description:
  Ubuntu 11.10

  I've noticed an anomaly when running a program that creates a small
  number of output files on a CIFS network share.  One of the output
  files appears to be corrupted:  the first line contains a long string
  of ^@ (ASCII NULL), followed by the expected data (tab-delimited
  numeric values).  The other lines appear to be normal, but there
  aren't as many as expected (6 instead of 1,000).

  Sample of the output:

  ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
  0.0171336   0.0212791   0.129199    0.10037 0.0326974   0.0290939   0.0201371   0.0603848   0.0345106   0.00430885  0.108036    0.0365998   0.0429855   0.0224048   0.0496568   0.0368914   0.0141055   0.00231577
  0.00796571  0.0263493   0.0113408   0.0147399   0.00599318  0.0197169   0.00563507  0.0136991   0.0534332   0.038746    0.000604263 0.050864    0.0532265   0.0159351   0.037813    0.0484131   0.0131025   0.098634
  0.0256822   0.012495    0.0984072   0.00511325  0.16901 0.0453786   0.13176 0.0152235   0.0217565   0.0238086   0.0039197   0.0338673   0.00393313  0.0829335   0.0136131   0.10796 0.10842 0.0515564   0.118125
  0.00660697  0.00292382  0.0905625   0.0461118   0.000703248 0.0315086   0.0288653   0.0880219   0.0312076   0.0140861   0.00304921  0.0580084   0.0442074   0.0772593   0.000842658 0.0174914   0.0183774   0.102918
  0.000778389 0.0138765   0.0245259   0.0248157   0.0639402   0.0517471   0.000249088 0.0851772   0.00481187  0.0284765   0.00991917  0.0298476   0.0118467   0.0152653   0.0114918   0.0259155   0.0603263   0.004833

  (each line extends beyond, but this is the file as viewed in vim with
  wrapping disabled)

  Interestingly, if I run the program with the top 100 attributes,
  resulting in an output file with 100 lines, I see no issues.  But if I
  run with the top 1,000 (output file with 1,000 lines), the odd ^@
  characters appear.

  If I run the same program and save the output files to the local
  drive, the aforementioned file is "valid":  no ^@ characters and the
  correct number of lines.  This leads me to believe that it has
  something to do with the CIFS-mounted network share.  The share is
  mounted via CIFS from our NAS, a Sun Storage 7110.

  Note:  we've recently upgraded our servers to 11.10, and were
  previously running 10.04.  This issue wasn't present in 10.04.  One of
  our desktops is running 11.04, and this issue doesn't manifest itself
  there either (same program, input data, writing to the network share).
  It only occurs on servers/desktops running 11.10.

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/879228/+subscriptions