Skip to contentSkip to conversation

PROBLEM: Corrupt files with kernel 2.6.0_test11 and smb mounts

DISCUSSION Daniel Flinkmann 2 participants 2 messages Dec 1, 2003 – Dec 6, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 15 lines

[1.] One line summary of the problem:

2.6.0test11 overwriting file on mounted smb volume causes corrupted files!

[2.] Full description of the problem/report:

When I log into a smb mounted directory and I overwrite a file with a file which has smaller amount of bytes its corrupting the data.

Easy way to show this is following:

cd onto a smbfs mounted dir.

Quoted 2 lines
# echo test1234567890 >test.txt
# cat test.txt
Quoted 9 lines

test1234567890

Quoted 2 lines
# echo hi! >test.txt
# cat test.txt

hi!
1234567890

Quoted 1 line

#

As you can see the file is not overwritten as it should be.

Ookhoi reported the same Problem with 2.6.0_test9 in the Samba Group:
http://lists.samba.org/archive/samba-technical/2003-November/032847.html

This could also be a Memorymanagement problem because the filesystem is always breaking the last block, which is handled different to the other blocks.

Daniel

#1 lore raw

Daniel Flinkmann wrote (ao):

Quoted 18 lines
Quoted 18 lines

[1.] One line summary of the problem:

2.6.0test11 overwriting file on mounted smb volume causes corrupted files!

[2.] Full description of the problem/report:

When I log into a smb mounted directory and I overwrite a file with a file which has smaller amount of bytes its corrupting the data.

Easy way to show this is following:

cd onto a smbfs mounted dir.

Quoted 2 lines
# echo test1234567890 >test.txt
# cat test.txt

test1234567890

Quoted 2 lines
# echo hi! >test.txt
# cat test.txt
Quoted 8 lines
Quoted 5 lines

hi!
1234567890

Quoted 1 line

#

As you can see the file is not overwritten as it should be.

Ookhoi reported the same Problem with 2.6.0_test9 in the Samba Group:
http://lists.samba.org/archive/samba-technical/2003-November/032847.html

That should be:
http://lists.samba.org/archive/samba-technical/2003-November/032845.html

Quoted 3 lines

This could also be a Memorymanagement problem because the filesystem is always breaking the last block, which is handled different to the other blocks.

Could this be the answer to the problem?
http://www.ussg.iu.edu/hypermail/linux/kernel/0312.0/0647.html

I don't have access to the setup anymore, but maybe it helps you.