Date: Sun, 24 Nov 2002 15:01:12 +1100 From: Tim Robbins <tjr@FreeBSD.ORG> To: current@FreeBSD.ORG Subject: Re: smbfs workaround Message-ID: <20021124150112.A90113@dilbert.robbins.dropbear.id.au> In-Reply-To: <20021124143440.A88845@dilbert.robbins.dropbear.id.au>; from tjr@FreeBSD.ORG on Sun, Nov 24, 2002 at 02:34:40PM %2B1100 References: <20021124143440.A88845@dilbert.robbins.dropbear.id.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 24, 2002 at 02:34:40PM +1100, Tim Robbins wrote: > I'd appreciate it if the people who were experiencing problems with > smbfs could try this patch and let me know how it goes. > > The patch adds two sysctls, net.smb.readwritex and net.smb.reqdatasize. > readwritex controls whether LARGE_READX and LARGE_WRITEX requests are > used, and is off by default. reqdatasize controls the maximum number of > bytes of data to request from the user with each read request, and it > defaults to a fairly conservative value of 4096. > > Setting readwritex to 0 makes smbfs work when the server OS is Windows XP. > Setting reqdatasize to 4096 makes it work when the server OS is > FreeBSD 4.7-RELEASE-p2 w/ Samba 2.2.3a. > > This patch is just a temporary workaround, of course. I have not been > able to track down the real problem. I should note that reqdatasize=4096 works for reading files, but not writing them. reqdatasize=1024 allows files to be written, but it looks like they are getting corrupted. Could this be a bug in the mbuf or mchain code or a change in semantics that netsmb has not been updated for? Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021124150112.A90113>