From owner-freebsd-current Wed Oct 23 11:36:47 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE71737B401 for ; Wed, 23 Oct 2002 11:36:45 -0700 (PDT) Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AAA143E42 for ; Wed, 23 Oct 2002 11:36:45 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 6866 invoked from network); 23 Oct 2002 18:36:45 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail17.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 23 Oct 2002 18:36:45 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id g9NIagn5067894; Wed, 23 Oct 2002 14:36:43 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3DB6EB16.2025AAE3@mindspring.com> Date: Wed, 23 Oct 2002 14:36:46 -0400 (EDT) From: John Baldwin To: Terry Lambert Subject: Re: smbfs broken? Cc: current@FreeBSD.ORG, Vitaly Markitantov , Sheldon Hearn Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 23-Oct-2002 Terry Lambert wrote: > Sheldon Hearn wrote: >> [client] >> $ for i in `jot 512 7680`; do >> cp /smb/urchin/pub/bytes/$i . || break; >> done >> cp: ./8145: Bad address >> >> If I truss the cp process, I get this: >> >> [...] >> open("/smb/urchin/pub/bytes/8145",0x0,00) = 3 (0x3) >> open("./8145",0x401,00) = 4 (0x4) >> mmap(0x0,8145,0x1,0x1,3,0x0) = 671461376 (0x2805b000) >> >> I don't have my laptop set up as a serial debugging client now, so >> that's as far as I can go. :-( > > AHA! > > The reason an FFS write resulted in an SMBFS read is that > you had mmap()'ed an SMBFS file, and then wrote a mapped > but-not-in-core page to the target FFS file. > > Knowing that the code involved is in the paging path of the > SMBFS code is important. > > What happens if you: > > dd if=/smb/urchin/pub/bytes/8145 of=8145 > > ? I expect that it works, no problem. > > This localizes the problem to the VOP_GETPAGES that gets hit > in the SMBFS case. Umm, terry. Did you even read all of this thread? He did a simple cat(1) later which used read(2) and it got an actual error back from read(2). Also, Sheldon is not the original submitter of the problem report. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message