LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Copy errors over samba (https://www.linuxquestions.org/questions/slackware-14/copy-errors-over-samba-654321/)

kungfo0 07-08-2008 10:20 AM

Copy errors over samba
 
Ever since I upgraded from Slackware 12 to 12.1 I've been receiving errors when copying files over a smbfs connection such at this:

cp /mnt/server02/testfile.data ~/testfile.data
cp: reading `/mnt/server02/testfile.data': Input/output error



Some data gets copied but it inevitably fails somewhere during the copy.

In /var/log/messages I noticed some additional errors:

Jul 8 09:17:45 lserver01 kernel: smb_proc_readX_data: offset is larger than SMB_READX_MAX_PAD or negative!
Jul 8 09:17:46 lserver01 kernel: smb_proc_readX_data: -59 > 64 || -59 < 0
Jul 8 09:18:15 lserver01 kernel: smb_add_request: request [cc3d7400, mid=7417] timed out!
Jul 8 09:33:41 lserver01 kernel: smb_proc_readX_data: offset is larger than SMB_READX_MAX_PAD or negative!
Jul 8 09:33:41 lserver01 kernel: smb_proc_readX_data: -59 > 64 || -59 < 0
Jul 8 09:34:11 lserver01 kernel: smb_add_request: request [ca73d900, mid=7412] timed out!



I haven't been able to track down a real fix but I was able to work around the problem by mounting the share with the file system type "cifs" instead of smbfs. I've never heard of cifs before this but it seems to work how I need it to, so I'll just leave it be.


Just wanted to post this somewhere in case other users are seeing this same problem or if anyone else has a better suggestion.

Thanks!

Anithen 07-10-2008 12:59 AM

I had a similar problem after upgrading everything to the latest samba. Newer samba uses cifs. I had to recompile my kernel for cifs on some of the older computers, and now I have to use the mount.cifs utility that come with the newer samba versions.


All times are GMT -5. The time now is 05:15 PM.