Robert M. Voegerl
2001-Mar-05 16:40 UTC
smbmount/kernel 2.4.2/Samba 2.0.7 - Unable to use large files/directories
Hi there. I'm having a very odd problem with samba. I have a Mandrake 7.2 linux distro, though I've compiled a 2.4.2 kernel for it (with samba support compiled in - not a module), and I've also compiled Samba 2.0.7. When I mount shares from my win98 machines, if I try to list a large directory or open a large file, the terminal freezes. I'm able to log in another, but if I attempt to 'ps aux', that term also freezes. If I 'ls /proc/<pid>' where <pid> is the next one after the last process displayed on the term with the frozen 'ps aux', that term freezes. If I leave it alone for a while, it will usally come back to life, and in /var/log/messages, I get: Mar 5 10:22:47 ra kernel: smb_get_length: recv error = 104 Mar 5 10:22:47 ra kernel: smb_trans2_request: result=-104, setting invalid Mar 5 10:22:47 ra kernel: smb_retry: sucessful, new pid=3860, generation=2 Mar 5 10:22:47 ra kernel: smb_proc_readdir_long: error=-104, retrying Mar 5 10:23:47 ra kernel: smb_get_length: recv error = 104 Mar 5 10:23:47 ra kernel: smb_trans2_request: result=-104, setting invalid Mar 5 10:23:48 ra kernel: smb_retry: sucessful, new pid=3860, generation=3 Mar 5 10:23:48 ra kernel: smb_proc_readdir_long: error=-104, retrying I don't seem to have any other networking issues. I can scp large files back and forth without any trouble. Any assistance would be appreciated. This is an old p133 that I'm turning into a headless firewall/mp3 player, but it has no drive space, so I need to smbmount the tunes! :) --blob
Urban Widmark
2001-Mar-05 19:22 UTC
smbmount/kernel 2.4.2/Samba 2.0.7 - Unable to use large files/directories
On Mon, 5 Mar 2001, Robert M. Voegerl wrote:> Hi there. > > I'm having a very odd problem with samba. I have a Mandrake 7.2 linuxsmbfs, not samba.> distro, though I've compiled a 2.4.2 kernel for it (with samba support > compiled in - not a module), and I've also compiled Samba 2.0.7. When I > mount shares from my win98 machines, if I try to list a large directory > or open a large file, the terminal freezes. I'm able to log in another,How large directory and how large file? Number of files/directories (or even better a list of names) and bytes.> Mar 5 10:22:47 ra kernel: smb_get_length: recv error = 104 > Mar 5 10:22:47 ra kernel: smb_trans2_request: result=-104, setting > invalid > Mar 5 10:22:47 ra kernel: smb_retry: sucessful, new pid=3860, > generation=2 > Mar 5 10:22:47 ra kernel: smb_proc_readdir_long: error=-104, retrying > Mar 5 10:23:47 ra kernel: smb_get_length: recv error = 104Hm, one minute exactly. What are you running that accesses smbfs here? Some mp3 player? which?> Any assistance would be appreciated. This is an old p133 that I'm > turning into a headless firewall/mp3 player, but it has no drive space, > so I need to smbmount the tunes! :)Unless your linux machine has a lot of memory (highmem, >4G) you may want to try 2.4.1 or copy the fs/smbfs/*.c code from 2.4.1 into 2.4.2. The 2.4.2 smbfs code appears to have some fatal bugs in the dentry code. I know how to hang my machine and I someone reported bad things when trying to tar up a remote machine. Your report doesn't match this completely, it doesn't go away by itself, but you may want to try 2.4.1 anyway. /Urban